diff options
Diffstat (limited to 'packages/OS400')
-rw-r--r-- | packages/OS400/README.OS400 | 2 | ||||
-rw-r--r-- | packages/OS400/ccsidcurl.c | 6 | ||||
-rw-r--r-- | packages/OS400/curl.inc.in | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/packages/OS400/README.OS400 b/packages/OS400/README.OS400 index 81173430e..bdfcae169 100644 --- a/packages/OS400/README.OS400 +++ b/packages/OS400/README.OS400 @@ -101,6 +101,8 @@ options: CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 CURLOPT_CRLFILE CURLOPT_ISSUERCERT + CURLOPT_USERNAME + CURLOPT_PASSWORD Else it is the same as for curl_easy_setopt(). Note that CURLOPT_ERRORBUFFER is not in the list above, since it gives the address of an (empty) character buffer, not the address of a string. diff --git a/packages/OS400/ccsidcurl.c b/packages/OS400/ccsidcurl.c index 9694a345c..0530b5232 100644 --- a/packages/OS400/ccsidcurl.c +++ b/packages/OS400/ccsidcurl.c @@ -728,7 +728,7 @@ curl_formadd_ccsid(struct curl_httppost * * httppost, /* Allocate the local curl_forms array. */ lformlen = ALLOC_GRANULE; - lforms = malloc(lformlen * sizeof(struct curl_forms)); + lforms = malloc(lformlen * sizeof *lforms); if (!lforms) return CURL_FORMADD_MEMORY; @@ -1030,7 +1030,7 @@ curl_easy_setopt_ccsid(CURL * curl, CURLoption tag, ...) if (testwarn) { testwarn = 0; - if ((int) STRING_LAST != (int) STRING_SSL_ISSUERCERT + 1) + if ((int) STRING_LAST != (int) STRING_PASSWORD + 1) curl_mfprintf(stderr, "*** WARNING: curl_easy_setopt_ccsid() should be reworked ***\n"); } @@ -1075,6 +1075,8 @@ curl_easy_setopt_ccsid(CURL * curl, CURLoption tag, ...) case CURLOPT_SSH_HOST_PUBLIC_KEY_MD5: case CURLOPT_CRLFILE: case CURLOPT_ISSUERCERT: + case CURLOPT_USERNAME: + case CURLOPT_PASSWORD: s = va_arg(arg, char *); ccsid = va_arg(arg, unsigned int); diff --git a/packages/OS400/curl.inc.in b/packages/OS400/curl.inc.in index 5ef5a0857..7474e06a0 100644 --- a/packages/OS400/curl.inc.in +++ b/packages/OS400/curl.inc.in @@ -782,6 +782,10 @@ d c 00171 d CURLOPT_CERTINFO... d c 00172 + d CURLOPT_USERNAME... + d c 10173 + d CURLOPT_PASSWORD... + d c 10174 * d CURLOPT_POST301... d c 00161 Obsolescent |