1CURLOPT_PROXY_SSL_OPTIONS(3)curl_easy_setopt optionsCURLOPT_PROXY_SSL_OPTIONS(3)
2
3
4

NAME

6       CURLOPT_PROXY_SSL_OPTIONS - set proxy SSL behavior options
7

SYNOPSIS

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

DESCRIPTION

15       Pass a long with a bitmask to tell libcurl about  specific  SSL  behav‐
16       iors.
17
18       CURLSSLOPT_ALLOW_BEAST  tells  libcurl  to not attempt to use any work‐
19       arounds for a security flaw in the SSL3 and TLS1.0 protocols.  If  this
20       option  isn't  used or this bit is set to 0, the SSL layer libcurl uses
21       may use a work-around for this flaw although it might cause  interoper‐
22       ability problems with some (older) SSL implementations. WARNING: avoid‐
23       ing this work-around lessens the security, and by setting  this  option
24       to  1 you ask for exactly that.  This option is only supported for Dar‐
25       winSSL, NSS and OpenSSL.
26
27       CURLSSLOPT_NO_REVOKE tells libcurl to  disable  certificate  revocation
28       checks for those SSL backends where such behavior is present. Currently
29       this option is only  supported  for  WinSSL  (the  native  Windows  SSL
30       library),  with an exception in the case of Windows' Untrusted Publish‐
31       ers blacklist which it seems can't be bypassed. This  option  may  have
32       broader  support  to  accommodate  other  SSL  backends  in the future.
33       https://curl.haxx.se/docs/ssl-compared.html
34
35

DEFAULT

37       0
38

PROTOCOLS

40       All
41

AVAILABLE

43       Added in 7.52.0
44

EXAMPLE

46       CURL *curl = curl_easy_init();
47       if(curl) {
48         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
49         curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
50         /* weaken TLS only for use with silly proxies */
51         curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, CURLSSLOPT_ALLOW_BEAST |
52                          CURLSSLOPT_NO_REVOKE);
53         ret = curl_easy_perform(curl);
54         curl_easy_cleanup(curl);
55       }
56

RETURN VALUE

58       Returns CURLE_OK if the option is supported,  and  CURLE_UNKNOWN_OPTION
59       if not.
60

SEE ALSO

62       CURLOPT_PROXY_SSLVERSION(3),   CURLOPT_PROXY_SSL_CIPHER_LIST(3),   CUR‐
63       LOPT_SSLVERSION(3), CURLOPT_SSL_CIPHER_LIST(3),
64
65
66
67libcurl 7.61.1                   May 31, 2017     CURLOPT_PROXY_SSL_OPTIONS(3)
Impressum