From 210fc95c0fd415ed4e240e11346f63b27ce418a6 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 5 Nov 2015 14:41:22 +0100 Subject: os400: adjust specific code to support new options. --- packages/OS400/ccsidcurl.c | 8 ++++++++ packages/OS400/curl.inc.in | 29 ++++++++++++++++++++++------- 2 files changed, 30 insertions(+), 7 deletions(-) (limited to 'packages/OS400') diff --git a/packages/OS400/ccsidcurl.c b/packages/OS400/ccsidcurl.c index 841ca9cbc..acb91b20c 100644 --- a/packages/OS400/ccsidcurl.c +++ b/packages/OS400/ccsidcurl.c @@ -933,6 +933,14 @@ curl_formadd_ccsid(struct curl_httppost * * httppost, break; + case CURLFORM_CONTENTLEN: + lengthx = nargs; + + if(!forms) + value = (char *) va_arg(arg, curl_off_t); + + break; + case CURLFORM_NAMELENGTH: namelengthx = nargs; diff --git a/packages/OS400/curl.inc.in b/packages/OS400/curl.inc.in index 86d4808d5..88713562b 100644 --- a/packages/OS400/curl.inc.in +++ b/packages/OS400/curl.inc.in @@ -126,20 +126,22 @@ d CURL_VERSION_UNIX_SOCKETS... d c X'00080000' * - d HTTPPOST_FILENAME... + d CURL_HTTPPOST_FILENAME... d c X'00000001' - d HTTPPOST_READFILE... + d CURL_HTTPPOST_READFILE... d c X'00000002' - d HTTPPOST_PTRNAME... + d CURL_HTTPPOST_PTRNAME... d c X'00000004' - d HTTPPOST_PTRCONTENTS... + d CURL_HTTPPOST_PTRCONTENTS... d c X'00000008' - d HTTPPOST_BUFFER... + d CURL_HTTPPOST_BUFFER... d c X'00000010' - d HTTPPOST_PTRBUFFER... + d CURL_HTTPPOST_PTRBUFFER... d c X'00000020' - d HTTPPOST_CALLBACK... + d CURL_HTTPPOST_CALLBACK... d c X'00000040' + d CURL_HTTPPOST_LARGE... + d c X'00000080' * d CURL_SEEKFUNC_OK... d c 0 @@ -1228,6 +1230,12 @@ d c 00237 d CURLOPT_DEFAULT_PROTOCOL... d c 10238 + d CURLOPT_STREAM_WEIGHT... + d c 00239 + d CURLOPT_STREAM_DEPENDS... + d c 10240 + d CURLOPT_STREAM_DEPENDS_E... + d c 10241 * /if not defined(CURL_NO_OLDIES) d CURLOPT_FILE c 10001 @@ -1318,6 +1326,8 @@ d c 18 d CURLFORM_STREAM... d c 19 + d CURLFORM_CONTENTLEN... + d c 20 * d CURLINFO s 10i 0 based(######ptr######) Enum d CURLINFO_EFFECTIVE_URL... CURLINFO_STRING + 1 @@ -1434,6 +1444,10 @@ d c 8 d CURLSSLBACKEND_DARWINSSL... d c 9 + d CURLSSLBACKEND_AXTLS... + d c 10 + d CURLSSLBACKEND_MBEDTLS... + d c 11 * d curl_closepolicy... d s 10i 0 based(######ptr######) Enum @@ -1699,6 +1713,7 @@ d value_ptr * overlay(value) d value_procptr... d * overlay(value) procptr + d value_num overlay(value: 8) like(curl_off_t) * d curl_slist ds based(######ptr######) d qualified -- cgit v1.2.3