Skip to content

Commit cb4e2be

Browse files
rousskovbagder
authored andcommitted
proxy: Support HTTPS proxy and SOCKS+HTTP(s)
* HTTPS proxies: An HTTPS proxy receives all transactions over an SSL/TLS connection. Once a secure connection with the proxy is established, the user agent uses the proxy as usual, including sending CONNECT requests to instruct the proxy to establish a [usually secure] TCP tunnel with an origin server. HTTPS proxies protect nearly all aspects of user-proxy communications as opposed to HTTP proxies that receive all requests (including CONNECT requests) in vulnerable clear text. With HTTPS proxies, it is possible to have two concurrent _nested_ SSL/TLS sessions: the "outer" one between the user agent and the proxy and the "inner" one between the user agent and the origin server (through the proxy). This change adds supports for such nested sessions as well. A secure connection with a proxy requires its own set of the usual SSL options (their actual descriptions differ and need polishing, see TODO): --proxy-cacert FILE CA certificate to verify peer against --proxy-capath DIR CA directory to verify peer against --proxy-cert CERT[:PASSWD] Client certificate file and password --proxy-cert-type TYPE Certificate file type (DER/PEM/ENG) --proxy-ciphers LIST SSL ciphers to use --proxy-crlfile FILE Get a CRL list in PEM format from the file --proxy-insecure Allow connections to proxies with bad certs --proxy-key KEY Private key file name --proxy-key-type TYPE Private key file type (DER/PEM/ENG) --proxy-pass PASS Pass phrase for the private key --proxy-ssl-allow-beast Allow security flaw to improve interop --proxy-sslv2 Use SSLv2 --proxy-sslv3 Use SSLv3 --proxy-tlsv1 Use TLSv1 --proxy-tlsuser USER TLS username --proxy-tlspassword STRING TLS password --proxy-tlsauthtype STRING TLS authentication type (default SRP) All --proxy-foo options are independent from their --foo counterparts, except --proxy-crlfile which defaults to --crlfile and --proxy-capath which defaults to --capath. Curl now also supports %{proxy_ssl_verify_result} --write-out variable, similar to the existing %{ssl_verify_result} variable. Supported backends: OpenSSL, GnuTLS, and NSS. * A SOCKS proxy + HTTP/HTTPS proxy combination: If both --socks* and --proxy options are given, Curl first connects to the SOCKS proxy and then connects (through SOCKS) to the HTTP or HTTPS proxy. TODO: Update documentation for the new APIs and --proxy-* options. Look for "Added in 7.XXX" marks.
1 parent 8034d8f commit cb4e2be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+3411
-960
lines changed

‎docs/curl.1‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,18 +1468,69 @@ the default authentication method curl uses with proxies.
14681468
.IP "--proxy-digest"
14691469
Tells curl to use HTTP Digest authentication when communicating with the given
14701470
proxy. Use \fI--digest\fP for enabling HTTP Digest with a remote host.
1471+
.IP "--proxy-cacert <CA certificate>"
1472+
(SSL) Same as --cacert but used in HTTPS proxy context.
1473+
(Added in 7.XXX)
1474+
.IP "--proxy-capath <CA certificate directory>"
1475+
(SSL) Same as --capath but used in HTTPS proxy context.
1476+
(Added in 7.XXX)
1477+
.IP "--proxy-cert <certificate[:password]>"
1478+
(SSL) Same as \fI--cert\fP but used in HTTPS proxy context.
1479+
(Added in 7.XXX)
1480+
.IP "--proxy-cert-type <type>"
1481+
(SSL) Same as \fI--cert-type\fP but used in HTTPS proxy context.
1482+
(Added in 7.XXX)
1483+
.IP "--proxy-ciphers <list of ciphers>"
1484+
(SSL) Same as \fI--ciphers\fP but used in HTTPS proxy context.
1485+
(Added in 7.XXX)
1486+
.IP "--proxy-crlfile <file>"
1487+
(HTTPS) Same as \fI--crlfile\fP but used in HTTPS proxy context.
1488+
(Added in 7.XXX)
1489+
.IP "--proxy-insecure"
1490+
(SSL) Same as \fI--insecure\fP but used in HTTPS proxy context.
1491+
(Added in 7.XXX)
1492+
.IP "--proxy-key <key>"
1493+
(SSL) Same as \fI--key\fP but used in HTTPS proxy context.
1494+
(Added in 7.XXX)
1495+
.IP "--proxy-key-type <type>"
1496+
(SSL) Same as \fI--key-type\fP but used in HTTPS proxy context.
1497+
(Added in 7.XXX)
14711498
.IP "--proxy-negotiate"
14721499
Tells curl to use HTTP Negotiate (SPNEGO) authentication when communicating
14731500
with the given proxy. Use \fI--negotiate\fP for enabling HTTP Negotiate (SPNEGO)
14741501
with a remote host. (Added in 7.17.1)
14751502
.IP "--proxy-ntlm"
14761503
Tells curl to use HTTP NTLM authentication when communicating with the given
14771504
proxy. Use \fI--ntlm\fP for enabling NTLM with a remote host.
1505+
.IP "--proxy-pass <phrase>"
1506+
(SSL) Same as \fI--pass\fP but used in HTTPS proxy context.
1507+
(Added in 7.XXX)
14781508
.IP "--proxy-service-name <servicename>"
14791509
This option allows you to change the service name for proxy negotiation.
14801510

14811511
Examples: --proxy-negotiate proxy-name \fI--proxy-service-name\fP sockd would use
14821512
sockd/proxy-name. (Added in 7.43.0).
1513+
.IP "--proxy-ssl-allow-beast"
1514+
(SSL) Same as \fI--ssl-allow-beast\fP but used in HTTPS proxy context.
1515+
(Added in 7.XXX)
1516+
.IP "--proxy-sslv2"
1517+
(SSL) Same as \fI--sslv2\fP but used in HTTPS proxy context.
1518+
(Added in 7.XXX)
1519+
.IP "--proxy-sslv3"
1520+
(SSL) Same as \fI--sslv3\fP but used in HTTPS proxy context.
1521+
(Added in 7.XXX)
1522+
.IP "--proxy-tlsauthtype <authtype>"
1523+
Same as \fI--tlsauthtype\fP but used in HTTPS proxy context.
1524+
(Added in 7.XXX)
1525+
.IP "--proxy-tlspassword <password>"
1526+
Same as \fI--tlspassword\fP but used in HTTPS proxy context.
1527+
(Added in 7.XXX)
1528+
.IP "--proxy-tlsuser <user>"
1529+
Same as \fI--tlsuser\fP but used in HTTPS proxy context.
1530+
(Added in 7.XXX)
1531+
.IP "--proxy-tlsv1"
1532+
(SSL) Same as \fI--tlsv1\fP but used in HTTPS proxy context.
1533+
(Added in 7.XXX)
14831534
.IP "--proxy1.0 <proxyhost[:port]>"
14841535
Use the specified HTTP 1.0 proxy. If the port number is not specified, it is
14851536
assumed at port 1080.

‎docs/libcurl/curl_easy_getinfo.3‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ See \fICURLINFO_REQUEST_SIZE(3)\fP
104104
.IP CURLINFO_SSL_VERIFYRESULT
105105
Certificate verification result.
106106
See \fICURLINFO_SSL_VERIFYRESULT(3)\fP
107+
.IP CURLINFO_PROXY_SSL_VERIFYRESULT
108+
Proxy certificate verification result.
109+
See \fICURLINFO_PROXY_SSL_VERIFYRESULT(3)\fP
107110
.IP CURLINFO_SSL_ENGINES
108111
A list of OpenSSL crypto engines.
109112
See \fICURLINFO_SSL_ENGINES(3)\fP

‎docs/libcurl/curl_easy_setopt.3‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,14 @@ Protocols to allow redirects to. See \fICURLOPT_REDIR_PROTOCOLS(3)\fP
159159
Default protocol. See \fICURLOPT_DEFAULT_PROTOCOL(3)\fP
160160
.IP CURLOPT_PROXY
161161
Proxy to use. See \fICURLOPT_PROXY(3)\fP
162+
.IP CURLOPT_SOCKS_PROXY
163+
Socks proxy to use. See \fICURLOPT_SOCKS_PROXY(3)\fP
162164
.IP CURLOPT_PROXYPORT
163165
Proxy port to use. See \fICURLOPT_PROXYPORT(3)\fP
164166
.IP CURLOPT_PROXYTYPE
165167
Proxy type. See \fICURLOPT_PROXYTYPE(3)\fP
168+
.IP CURLOPT_SOCKS_PROXYTYPE
169+
Socks proxy type. See \fICURLOPT_SOCKS_PROXYTYPE(3)\fP
166170
.IP CURLOPT_NOPROXY
167171
Filter out hosts from proxy use. \fICURLOPT_NOPROXY(3)\fP
168172
.IP CURLOPT_HTTPPROXYTUNNEL
@@ -228,10 +232,16 @@ Proxy password. See \fICURLOPT_PROXYPASSWORD(3)\fP
228232
HTTP server authentication methods. See \fICURLOPT_HTTPAUTH(3)\fP
229233
.IP CURLOPT_TLSAUTH_USERNAME
230234
TLS authentication user name. See \fICURLOPT_TLSAUTH_USERNAME(3)\fP
235+
.IP CURLOPT_PROXY_TLSAUTH_USERNAME
236+
Proxy TLS authentication user name. See \fICURLOPT_PROXY_TLSAUTH_USERNAME(3)\fP
231237
.IP CURLOPT_TLSAUTH_PASSWORD
232238
TLS authentication password. See \fICURLOPT_TLSAUTH_PASSWORD(3)\fP
239+
.IP CURLOPT_PROXY_TLSAUTH_PASSWORD
240+
Proxy TLS authentication password. See \fICURLOPT_PROXY_TLSAUTH_PASSWORD(3)\fP
233241
.IP CURLOPT_TLSAUTH_TYPE
234242
TLS authentication methods. See \fICURLOPT_TLSAUTH_TYPE(3)\fP
243+
.IP CURLOPT_PROXY_TLSAUTH_TYPE
244+
Proxy TLS authentication methods. See \fICURLOPT_PROXY_TLSAUTH_TYPE(3)\fP
235245
.IP CURLOPT_PROXYAUTH
236246
HTTP proxy authentication methods. See \fICURLOPT_PROXYAUTH(3)\fP
237247
.IP CURLOPT_SASL_IR
@@ -447,14 +457,24 @@ Timeout for waiting for the server's connect back to be accepted. See \fICURLOPT
447457
.SH SSL and SECURITY OPTIONS
448458
.IP CURLOPT_SSLCERT
449459
Client cert. See \fICURLOPT_SSLCERT(3)\fP
460+
.IP CURLOPT_PROXY_SSLCERT
461+
Proxy client cert. See \fICURLOPT_PROXY_SSLCERT(3)\fP
450462
.IP CURLOPT_SSLCERTTYPE
451463
Client cert type. See \fICURLOPT_SSLCERTTYPE(3)\fP
464+
.IP CURLOPT_PROXY_SSLCERTTYPE
465+
Proxy client cert type. See \fICURLOPT_PROXY_SSLCERTTYPE(3)\fP
452466
.IP CURLOPT_SSLKEY
453467
Client key. See \fICURLOPT_SSLKEY(3)\fP
468+
.IP CURLOPT_PROXY_SSLKEY
469+
Proxy client key. See \fICURLOPT_PROXY_SSLKEY(3)\fP
454470
.IP CURLOPT_SSLKEYTYPE
455471
Client key type. See \fICURLOPT_SSLKEYTYPE(3)\fP
472+
.IP CURLOPT_PROXY_SSLKEYTYPE
473+
Proxy client key type. See \fICURLOPT_PROXY_SSLKEYTYPE(3)\fP
456474
.IP CURLOPT_KEYPASSWD
457475
Client key password. See \fICURLOPT_KEYPASSWD(3)\fP
476+
.IP CURLOPT_PROXY_KEYPASSWD
477+
Proxy client key password. See \fICURLOPT_PROXY_KEYPASSWD(3)\fP
458478
.IP CURLOPT_SSL_ENABLE_ALPN
459479
Enable use of ALPN. See \fICURLOPT_SSL_ENABLE_ALPN(3)\fP
460480
.IP CURLOPT_SSL_ENABLE_NPN
@@ -467,20 +487,32 @@ Default SSL engine. See \fICURLOPT_SSLENGINE_DEFAULT(3)\fP
467487
Enable TLS False Start. See \fICURLOPT_SSL_FALSESTART(3)\fP
468488
.IP CURLOPT_SSLVERSION
469489
SSL version to use. See \fICURLOPT_SSLVERSION(3)\fP
490+
.IP CURLOPT_PROXY_SSLVERSION
491+
Proxy SSL version to use. See \fICURLOPT_PROXY_SSLVERSION(3)\fP
470492
.IP CURLOPT_SSL_VERIFYHOST
471493
Verify the host name in the SSL certificate. See \fICURLOPT_SSL_VERIFYHOST(3)\fP
494+
.IP CURLOPT_PROXY_SSL_VERIFYHOST
495+
Verify the host name in the proxy SSL certificate. See \fICURLOPT_PROXY_SSL_VERIFYHOST(3)\fP
472496
.IP CURLOPT_SSL_VERIFYPEER
473497
Verify the SSL certificate. See \fICURLOPT_SSL_VERIFYPEER(3)\fP
498+
.IP CURLOPT_PROXY_SSL_VERIFYPEER
499+
Verify the proxy SSL certificate. See \fICURLOPT_PROXY_SSL_VERIFYPEER(3)\fP
474500
.IP CURLOPT_SSL_VERIFYSTATUS
475501
Verify the SSL certificate's status. See \fICURLOPT_SSL_VERIFYSTATUS(3)\fP
476502
.IP CURLOPT_CAINFO
477503
CA cert bundle. See \fICURLOPT_CAINFO(3)\fP
504+
.IP CURLOPT_PROXY_CAINFO
505+
Proxy CA cert bundle. See \fICURLOPT_PROXY_CAINFO(3)\fP
478506
.IP CURLOPT_ISSUERCERT
479507
Issuer certificate. See \fICURLOPT_ISSUERCERT(3)\fP
480508
.IP CURLOPT_CAPATH
481509
Path to CA cert bundle. See \fICURLOPT_CAPATH(3)\fP
510+
.IP CURLOPT_PROXY_CAPATH
511+
Path to proxy CA cert bundle. See \fICURLOPT_PROXY_CAPATH(3)\fP
482512
.IP CURLOPT_CRLFILE
483513
Certificate Revocation List. See \fICURLOPT_CRLFILE(3)\fP
514+
.IP CURLOPT_PROXY_CRLFILE
515+
Proxy Certificate Revocation List. See \fICURLOPT_PROXY_CRLFILE(3)\fP
484516
.IP CURLOPT_CERTINFO
485517
Extract certificate info. See \fICURLOPT_CERTINFO(3)\fP
486518
.IP CURLOPT_PINNEDPUBLICKEY
@@ -491,10 +523,14 @@ Provide source for entropy random data. See \fICURLOPT_RANDOM_FILE(3)\fP
491523
Identify EGD socket for entropy. See \fICURLOPT_EGDSOCKET(3)\fP
492524
.IP CURLOPT_SSL_CIPHER_LIST
493525
Ciphers to use. See \fICURLOPT_SSL_CIPHER_LIST(3)\fP
526+
.IP CURLOPT_PROXY_SSL_CIPHER_LIST
527+
Proxy ciphers to use. See \fICURLOPT_PROXY_SSL_CIPHER_LIST(3)\fP
494528
.IP CURLOPT_SSL_SESSIONID_CACHE
495529
Disable SSL session-id cache. See \fICURLOPT_SSL_SESSIONID_CACHE(3)\fP
496530
.IP CURLOPT_SSL_OPTIONS
497531
Control SSL behavior. See \fICURLOPT_SSL_OPTIONS(3)\fP
532+
.IP CURLOPT_PROXY_SSL_OPTIONS
533+
Control proxy SSL behavior. See \fICURLOPT_PROXY_SSL_OPTIONS(3)\fP
498534
.IP CURLOPT_KRBLEVEL
499535
Kerberos security level. See \fICURLOPT_KRBLEVEL(3)\fP
500536
.IP CURLOPT_GSSAPI_DELEGATION
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.\" **************************************************************************
2+
.\" * _ _ ____ _
3+
.\" * Project ___| | | | _ \| |
4+
.\" * / __| | | | |_) | |
5+
.\" * | (__| |_| | _ <| |___
6+
.\" * \___|\___/|_| \_\_____|
7+
.\" *
8+
.\" * Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al.
9+
.\" *
10+
.\" * This software is licensed as described in the file COPYING, which
11+
.\" * you should have received as part of this distribution. The terms
12+
.\" * are also available at https://curl.haxx.se/docs/copyright.html.
13+
.\" *
14+
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15+
.\" * copies of the Software, and permit persons to whom the Software is
16+
.\" * furnished to do so, under the terms of the COPYING file.
17+
.\" *
18+
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19+
.\" * KIND, either express or implied.
20+
.\" *
21+
.\" **************************************************************************
22+
.\"
23+
.TH CURLINFO_PROXY_SSL_VERIFYRESULT 3 "16 Nov 2016" "libcurl 7.51.1" "curl_easy_getinfo options"
24+
.SH NAME
25+
CURLINFO_PROXY_SSL_VERIFYRESULT \- get the result of the proxy certification verification
26+
.SH SYNOPSIS
27+
#include <curl/curl.h>
28+
29+
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PROXY_SSL_VERIFYRESULT, long *result);
30+
.SH DESCRIPTION
31+
TODO: Make this text specific to HTTPS proxy. (Added in 7.XXX)
32+
Pass a pointer to a long to receive the result of the certification
33+
verification that was requested (using the \fICURLOPT_SSL_VERIFYPEER(3)\fP
34+
option.
35+
.SH PROTOCOLS
36+
All using TLS
37+
.SH EXAMPLE
38+
TODO
39+
.SH AVAILABILITY
40+
Added in 7.5
41+
.SH RETURN VALUE
42+
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
43+
.SH "SEE ALSO"
44+
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
.\" **************************************************************************
2+
.\" * _ _ ____ _
3+
.\" * Project ___| | | | _ \| |
4+
.\" * / __| | | | |_) | |
5+
.\" * | (__| |_| | _ <| |___
6+
.\" * \___|\___/|_| \_\_____|
7+
.\" *
8+
.\" * Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al.
9+
.\" *
10+
.\" * This software is licensed as described in the file COPYING, which
11+
.\" * you should have received as part of this distribution. The terms
12+
.\" * are also available at https://curl.haxx.se/docs/copyright.html.
13+
.\" *
14+
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15+
.\" * copies of the Software, and permit persons to whom the Software is
16+
.\" * furnished to do so, under the terms of the COPYING file.
17+
.\" *
18+
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19+
.\" * KIND, either express or implied.
20+
.\" *
21+
.\" **************************************************************************
22+
.\"
23+
.TH CURLOPT_PROXY_CAINFO 3 "16 Nov 2016" "libcurl 7.51.1" "curl_easy_setopt options"
24+
.SH NAME
25+
CURLOPT_PROXY_CAINFO \- path to proxy Certificate Authority (CA) bundle
26+
.SH SYNOPSIS
27+
#include <curl/curl.h>
28+
29+
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_CAINFO, char *path);
30+
.SH DESCRIPTION
31+
TODO: Make this text specific to HTTPS proxy. (Added in 7.XXX)
32+
Pass a char * to a zero terminated string naming a file holding one or more
33+
certificates to verify the peer with.
34+
35+
If \fICURLOPT_SSL_VERIFYPEER(3)\fP is zero and you avoid verifying the
36+
server's certificate, \fICURLOPT_CAINFO(3)\fP need not even indicate an
37+
accessible file.
38+
39+
This option is by default set to the system path where libcurl's cacert bundle
40+
is assumed to be stored, as established at build time.
41+
42+
If curl is built against the NSS SSL library, the NSS PEM PKCS#11 module
43+
(libnsspem.so) needs to be available for this option to work properly.
44+
45+
(iOS and macOS only) If curl is built against Secure Transport, then this
46+
option is supported for backward compatibility with other SSL engines, but it
47+
should not be set. If the option is not set, then curl will use the
48+
certificates in the system and user Keychain to verify the peer, which is the
49+
preferred method of verifying the peer's certificate chain.
50+
.SH DEFAULT
51+
Built-in system specific
52+
.SH PROTOCOLS
53+
All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
54+
.SH EXAMPLE
55+
TODO
56+
.SH AVAILABILITY
57+
For SSL engines that don't support certificate files the CURLOPT_PROXY_CAINFO option
58+
is ignored. Refer to https://curl.haxx.se/docs/ssl-compared.html
59+
.SH RETURN VALUE
60+
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or
61+
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
62+
.SH "SEE ALSO"
63+
.BR CURLOPT_CAPATH "(3), "
64+
.BR CURLOPT_SSL_VERIFYPEER "(3), " CURLOPT_SSL_VERIFYHOST "(3), "
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.\" **************************************************************************
2+
.\" * _ _ ____ _
3+
.\" * Project ___| | | | _ \| |
4+
.\" * / __| | | | |_) | |
5+
.\" * | (__| |_| | _ <| |___
6+
.\" * \___|\___/|_| \_\_____|
7+
.\" *
8+
.\" * Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al.
9+
.\" *
10+
.\" * This software is licensed as described in the file COPYING, which
11+
.\" * you should have received as part of this distribution. The terms
12+
.\" * are also available at https://curl.haxx.se/docs/copyright.html.
13+
.\" *
14+
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15+
.\" * copies of the Software, and permit persons to whom the Software is
16+
.\" * furnished to do so, under the terms of the COPYING file.
17+
.\" *
18+
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19+
.\" * KIND, either express or implied.
20+
.\" *
21+
.\" **************************************************************************
22+
.\"
23+
.TH CURLOPT_PROXY_CAPATH 3 "16 Nov 2016" "libcurl 7.51.1" "curl_easy_setopt options"
24+
.SH NAME
25+
CURLOPT_PROXY_CAPATH \- specify directory holding proxy CA certificates
26+
.SH SYNOPSIS
27+
#include <curl/curl.h>
28+
29+
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_CAPATH, char *capath);
30+
.SH DESCRIPTION
31+
TODO: Make this text specific to HTTPS proxy. (Added in 7.XXX)
32+
Pass a char * to a zero terminated string naming a directory holding multiple
33+
CA certificates to verify the peer with. If libcurl is built against OpenSSL,
34+
the certificate directory must be prepared using the openssl c_rehash utility.
35+
This makes sense only when used in combination with the
36+
\fICURLOPT_SSL_VERIFYPEER(3)\fP option.
37+
38+
The \fICURLOPT_CAPATH(3)\fP function apparently does not work in Windows due
39+
to some limitation in openssl.
40+
.SH DEFAULT
41+
NULL
42+
.SH PROTOCOLS
43+
All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
44+
.SH EXAMPLE
45+
TODO
46+
.SH AVAILABILITY
47+
This option is supported by the OpenSSL, GnuTLS and PolarSSL backends. The NSS
48+
backend provides the option only for backward compatibility.
49+
.SH RETURN VALUE
50+
Returns CURLE_OK if TLS enabled, and CURLE_UNKNOWN_OPTION if not, or
51+
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
52+
.SH "SEE ALSO"
53+
.BR CURLOPT_CAINFO "(3), "
54+
.BR CURLOPT_STDERR "(3), " CURLOPT_DEBUGFUNCTION "(3), "

0 commit comments

Comments
 (0)