1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 20:45:03 -05:00

clarified SSL_VERIFYPEER and SSL_VERIFYHOST a bit, thanks to Soren Spies

This commit is contained in:
Daniel Stenberg 2002-12-02 06:47:16 +00:00
parent 4a555de1b2
commit 3f8ba3a986

View File

@ -712,10 +712,13 @@ Pass a long as parameter. Set what version of SSL to attempt to use, 2 or
servers make this difficult why you at times may have to use this option. servers make this difficult why you at times may have to use this option.
.TP .TP
.B CURLOPT_SSL_VERIFYPEER .B CURLOPT_SSL_VERIFYPEER
Pass a long that is set to a non-zero value to make curl verify the peer's Pass a long that is set to a zero value to stop curl from verifying the peer's
certificate. The certificate to verify against must be specified with the certificate (7.10 starting setting this option to TRUE by default). Alternate
CURLOPT_CAINFO option (Added in 7.4.2) or a certificate directory must be specified certificates to verify against can be specified with the CURLOPT_CAINFO option
with the CURLOPT_CAPATH option (Added in 7.9.8). (Added in 7.4.2) or a certificate directory can be specified with the
CURLOPT_CAPATH option (Added in 7.9.8). As of 7.10, curl installs a default
bundle. CURLOPT_SSL_VERIFYHOST may also need to be set to 1 or 0 if
CURLOPT_SSL_VERIFYPEER is disabled (it defaults to 2).
.TP .TP
.B CURLOPT_CAINFO .B CURLOPT_CAINFO
Pass a char * to a zero terminated string naming a file holding one or more Pass a char * to a zero terminated string naming a file holding one or more
@ -742,7 +745,8 @@ socket. It will be used to seed the random engine for SSL.
.B CURLOPT_SSL_VERIFYHOST .B CURLOPT_SSL_VERIFYHOST
Pass a long. Set if we should verify the Common name from the peer certificate Pass a long. Set if we should verify the Common name from the peer certificate
in the SSL handshake, set 1 to check existence, 2 to ensure that it matches in the SSL handshake, set 1 to check existence, 2 to ensure that it matches
the provided hostname. (Added in 7.8.1) the provided hostname. This is by default set to 2. (Added in 7.8.1, default
changed in 7.10)
.TP .TP
.B CURLOPT_SSL_CIPHER_LIST .B CURLOPT_SSL_CIPHER_LIST
Pass a char *, pointing to a zero terminated string holding the list of Pass a char *, pointing to a zero terminated string holding the list of