diff options
author | Patrick Monnerat <pm@datasphere.ch> | 2014-12-04 15:34:03 +0100 |
---|---|---|
committer | Patrick Monnerat <pm@datasphere.ch> | 2014-12-04 15:34:03 +0100 |
commit | 4ce87e33ee3ee2b9d66cee1e6eba5b98b2545d1f (patch) | |
tree | c1bb6269b7a86d8eac0b60a3a6355bdc15b0ae63 | |
parent | 86fe7e502b4efbab19f9eea53355cfba04b0b625 (diff) |
OS400: enable Unix sockets.
-rw-r--r-- | lib/config-os400.h | 3 | ||||
-rw-r--r-- | packages/OS400/README.OS400 | 1 | ||||
-rw-r--r-- | packages/OS400/ccsidcurl.c | 3 |
3 files changed, 6 insertions, 1 deletions
diff --git a/lib/config-os400.h b/lib/config-os400.h index b6b29a525..14c685ae7 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -540,6 +540,9 @@ /* Define to use the GSKit package. */ #define USE_GSKIT +/* Define to use Unix sockets. */ +#define USE_UNIX_SOCKETS + /* Use the system keyring as the default CA bundle. */ #define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB" diff --git a/packages/OS400/README.OS400 b/packages/OS400/README.OS400 index 6f8f58fad..99b606c89 100644 --- a/packages/OS400/README.OS400 +++ b/packages/OS400/README.OS400 @@ -113,6 +113,7 @@ options: CURLOPT_TLSAUTH_PASSWORD CURLOPT_TLSAUTH_TYPE CURLOPT_TLSAUTH_USERNAME + CURLOPT_UNIX_SOCKET_PATH CURLOPT_URL CURLOPT_USERAGENT CURLOPT_USERNAME diff --git a/packages/OS400/ccsidcurl.c b/packages/OS400/ccsidcurl.c index 2dd7bcb92..d0e6827b7 100644 --- a/packages/OS400/ccsidcurl.c +++ b/packages/OS400/ccsidcurl.c @@ -1114,7 +1114,7 @@ curl_easy_setopt_ccsid(CURL * curl, CURLoption tag, ...) if(testwarn) { testwarn = 0; - if((int) STRING_LASTZEROTERMINATED != (int) STRING_BEARER + 1 || + if((int) STRING_LASTZEROTERMINATED != (int) STRING_UNIX_SOCKET_PATH + 1 || (int) STRING_LAST != (int) STRING_COPYPOSTFIELDS + 1) curl_mfprintf(stderr, "*** WARNING: curl_easy_setopt_ccsid() should be reworked ***\n"); @@ -1174,6 +1174,7 @@ curl_easy_setopt_ccsid(CURL * curl, CURLoption tag, ...) case CURLOPT_TLSAUTH_PASSWORD: case CURLOPT_TLSAUTH_TYPE: case CURLOPT_TLSAUTH_USERNAME: + case CURLOPT_UNIX_SOCKET_PATH: case CURLOPT_URL: case CURLOPT_USERAGENT: case CURLOPT_USERNAME: |