1CURLOPT_PROXY_SSL_OPTIONS(3)        libcurl       CURLOPT_PROXY_SSL_OPTIONS(3)
2
3
4

NAME

6       CURLOPT_PROXY_SSL_OPTIONS - HTTPS proxy SSL behavior options
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_SSL_OPTIONS,
12                                 long bitmask);
13

DESCRIPTION

15       Pass  a  long  with a bitmask to tell libcurl about specific SSL behav‐
16       iors. Available bits:
17
18       CURLSSLOPT_ALLOW_BEAST
19              Tells libcurl to not attempt to use any workarounds for a  secu‐
20              rity  flaw  in the SSL3 and TLS1.0 protocols.  If this option is
21              not used or this bit is set to 0, the SSL layer libcurl uses may
22              use a work-around for this flaw although it might cause interop‐
23              erability problems with some (older) SSL implementations.  WARN‐
24              ING: avoiding this work-around lessens the security, and by set‐
25              ting this option to 1 you ask for exactly that.  This option  is
26              only supported for Secure Transport, NSS and OpenSSL.
27
28       CURLSSLOPT_NO_REVOKE
29              Tells libcurl to disable certificate revocation checks for those
30              SSL backends where such behavior is present. This option is only
31              supported for Schannel (the native Windows SSL library), with an
32              exception in the case of  Windows'  Untrusted  Publishers  block
33              list which it seems cannot be bypassed. (Added in 7.44.0)
34
35       CURLSSLOPT_NO_PARTIALCHAIN
36              Tells  libcurl to not accept "partial" certificate chains, which
37              it otherwise does by default. This option is only supported  for
38              OpenSSL  and will fail the certificate verification if the chain
39              ends with an intermediate certificate and not with a root  cert.
40              (Added in 7.68.0)
41
42       CURLSSLOPT_REVOKE_BEST_EFFORT
43              Tells libcurl to ignore certificate revocation checks in case of
44              missing or offline distribution points for  those  SSL  backends
45              where  such  behavior  is present. This option is only supported
46              for Schannel (the native Windows SSL library). If combined  with
47              CURLSSLOPT_NO_REVOKE,  the  latter  takes  precedence. (Added in
48              7.70.0)
49
50       CURLSSLOPT_NATIVE_CA
51              Tell libcurl to use the operating system's native CA  store  for
52              certificate  verification.  Works  only on Windows when built to
53              use OpenSSL. If you set this option and also set a  CA  certifi‐
54              cate  file  or directory then during verification those certifi‐
55              cates are searched in addition to the native CA  store.   (Added
56              in 7.71.0)
57
58       CURLSSLOPT_AUTO_CLIENT_CERT
59              Tell  libcurl  to automatically locate and use a client certifi‐
60              cate for authentication, when requested by the server. This  op‐
61              tion  is only supported for Schannel (the native Windows SSL li‐
62              brary). Prior to 7.77.0 this was the default behavior in libcurl
63              with Schannel. Since the server can request any certificate that
64              supports client authentication in the OS  certificate  store  it
65              could be a privacy violation and unexpected.  (Added in 7.77.0)
66

DEFAULT

68       0
69

PROTOCOLS

71       All TLS-based protocols
72

EXAMPLE

74       CURL *curl = curl_easy_init();
75       if(curl) {
76         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
77         curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
78         /* weaken TLS only for use with silly proxies */
79         curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, CURLSSLOPT_ALLOW_BEAST |
80                          CURLSSLOPT_NO_REVOKE);
81         ret = curl_easy_perform(curl);
82         curl_easy_cleanup(curl);
83       }
84

AVAILABILITY

86       Added in 7.52.0
87

RETURN VALUE

89       Returns  CURLE_OK  if the option is supported, and CURLE_UNKNOWN_OPTION
90       if not.
91

SEE ALSO

93       CURLOPT_PROXY_SSLVERSION(3),   CURLOPT_PROXY_SSL_CIPHER_LIST(3),   CUR‐
94       LOPT_SSLVERSION(3), CURLOPT_SSL_CIPHER_LIST(3),
95
96
97
98ibcurl 8.2.1                    April 26, 2023    CURLOPT_PROXY_SSL_OPTIONS(3)
Impressum