]> granicus.if.org Git - curl/commitdiff
os400: alt-svc support.
authorPatrick Monnerat <patrick@monnerat.net>
Sun, 17 Mar 2019 17:54:36 +0000 (18:54 +0100)
committerPatrick Monnerat <patrick@monnerat.net>
Sun, 17 Mar 2019 17:54:36 +0000 (18:54 +0100)
Although experimental, enable it in the platform config file.
Upgrade ILE/RPG binding.

lib/config-os400.h
packages/OS400/README.OS400
packages/OS400/ccsidcurl.c
packages/OS400/curl.inc.in

index 7844444feb6c474b52da9278caf75678756d50ca..d2cb1caffe539ed635f14c048eecc77a2e3a9f9d 100644 (file)
@@ -7,7 +7,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
 /* Define if you can safely include both <sys/time.h> and <time.h>. */
 #define TIME_WITH_SYS_TIME
 
+/* to enable alt-svc */
+#define USE_ALTSVC 1
+
 /* Version number of package */
 #undef VERSION
 
index 967c26f687c17a9ec6985165a85dfffafc13526f..c653ceceb28a64792f39aad74280171d53b5f7d4 100644 (file)
@@ -64,6 +64,7 @@ _ curl_easy_setopt_ccsid()
   Variable arguments are a string pointer and a CCSID (unsigned int) for
 options:
         CURLOPT_ABSTRACT_UNIX_SOCKET
+        CURLOPT_ALTSVC
         CURLOPT_CAINFO
         CURLOPT_CAPATH
         CURLOPT_COOKIE
index 7ce61aa9fa516375fe01144f23dffdf9f13ec925..eae2c57511cbac7a1bbc13dbef206bda2cfe2209 100644 (file)
@@ -1132,7 +1132,7 @@ curl_easy_setopt_ccsid(CURL * curl, CURLoption tag, ...)
   if(testwarn) {
     testwarn = 0;
 
-    if((int) STRING_LASTZEROTERMINATED != (int) STRING_DOH + 1 ||
+    if((int) STRING_LASTZEROTERMINATED != (int) STRING_ALTSVC + 1 ||
        (int) STRING_LAST != (int) STRING_COPYPOSTFIELDS + 1)
       curl_mfprintf(stderr,
        "*** WARNING: curl_easy_setopt_ccsid() should be reworked ***\n");
@@ -1144,6 +1144,7 @@ curl_easy_setopt_ccsid(CURL * curl, CURLoption tag, ...)
   switch (tag) {
 
   case CURLOPT_ABSTRACT_UNIX_SOCKET:
+  case CURLOPT_ALTSVC:
   case CURLOPT_CAINFO:
   case CURLOPT_CAPATH:
   case CURLOPT_COOKIE:
index 643f480c5777cfa92d2d399526a4588a3451f11f..72a769f1d90e890b9a33d69ef66ffd5863c6b3f8 100644 (file)
@@ -5,7 +5,7 @@
       *                            | (__| |_| |  _ <| |___
       *                             \___|\___/|_| \_\_____|
       *
-      * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+      * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
       *
       * This software is licensed as described in the file COPYING, which
       * you should have received as part of this distribution. The terms
      d                 c                   X'00200000'
      d CURL_VERSION_MULTI_SSL...
      d                 c                   X'00400000'
+     d CURL_VERSION_BROTLI...
+     d                 c                   X'00800000'
+     d CURL_VERSION_ALTSVC...
+     d                 c                   X'01000000'
       *
      d CURL_HTTPPOST_FILENAME...
      d                 c                   X'00000001'
      d  CURLHEADER_SEPARATE...
      d                 c                   X'00000001'
       *
+     d  CURLALTSVC_IMMEDIATELY...
+     d                 c                   X'00000001'
+     d  CURLALTSVC_ALTUSED...
+     d                 c                   X'00000002'
+     d  CURLALTSVC_READONLYFILE...
+     d                 c                   X'00000004'
+     d  CURLALTSVC_H1...
+     d                 c                   X'00000008'
+     d  CURLALTSVC_H2...
+     d                 c                   X'00000010'
+     d  CURLALTSVC_H3...
+     d                 c                   X'00000020'
+      *
      d  CURLPROTO_HTTP...
      d                 c                   X'00000001'
      d  CURLPROTO_HTTPS...
      d                 c                   10284
      d  CURLOPT_HTTP09_ALLOWED...
      d                 c                   00285
+     d  CURLOPT_ALTSVC_CTRL...
+     d                 c                   00286
+     d  CURLOPT_ALTSVC...
+     d                 c                   10287
       *
       /if not defined(CURL_NO_OLDIES)
      d  CURLOPT_FILE   c                   10001