]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: fix some loose ends for recently added CURLSSLOPT_NO_PARTIALCHAIN
authorJay Satiro <raysatiro@yahoo.com>
Fri, 6 Dec 2019 00:17:31 +0000 (19:17 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 6 Dec 2019 00:17:31 +0000 (19:17 -0500)
Add support for CURLSSLOPT_NO_PARTIALCHAIN in CURLOPT_PROXY_SSL_OPTIONS
and OS400 package spec.

Also I added the option to the NameValue list in the tool even though it
isn't exposed as a command-line option (...yet?). (NameValue stringizes
the option name for the curl cmd -> libcurl source generator)

Follow-up to 564d88a which added CURLSSLOPT_NO_PARTIALCHAIN.

Ref: https://github.com/curl/curl/pull/4655

lib/setopt.c
packages/OS400/curl.inc.in
src/tool_setopt.c

index 57e1090ce39a0cf5b152655c1ace05d89af94aaf..5f88ad3afdb600006c4f04c1129e4e9f49f2be60 100644 (file)
@@ -2142,6 +2142,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
     data->set.proxy_ssl.enable_beast =
       (bool)((arg&CURLSSLOPT_ALLOW_BEAST) ? TRUE : FALSE);
     data->set.proxy_ssl.no_revoke = !!(arg & CURLSSLOPT_NO_REVOKE);
+    data->set.proxy_ssl.no_partialchain = !!(arg & CURLSSLOPT_NO_PARTIALCHAIN);
     break;
 #endif
 
index 9a44eae4905228f7ea8a91c626144b174d1df24c..3f32b358dd8a9aeb1a42bd54b62154bec590b2a4 100644 (file)
      d                 c                   X'0001'
      d CURLSSLOPT_NO_REVOKE...
      d                 c                   X'0002'
+     d CURLSSLOPT_NO_PARTIALCHAIN...
+     d                 c                   X'0004'
       *
      d CURL_HET_DEFAULT...
      d                 c                   200
index e56af1317fafae8bc97176c73b8d87f25288e09a..9b308bf4a930c53bb3920c1f08a73973b3298322 100644 (file)
@@ -124,6 +124,7 @@ const NameValue setopt_nv_CURLUSESSL[] = {
 const NameValueUnsigned setopt_nv_CURLSSLOPT[] = {
   NV(CURLSSLOPT_ALLOW_BEAST),
   NV(CURLSSLOPT_NO_REVOKE),
+  NV(CURLSSLOPT_NO_PARTIALCHAIN),
   NVEND,
 };