Loading docs/libcurl/opts/CURLINFO_SSL_VERIFYRESULT.3 +5 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * .\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms Loading @@ -31,6 +31,8 @@ CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_SSL_VERIFYRESULT, long *result Pass a pointer to a long to receive the result of the server SSL certificate verification that was requested (using the \fICURLOPT_SSL_VERIFYPEER(3)\fP option. 0 is a positive result. Non-zero is an error. .SH PROTOCOLS All using TLS .SH EXAMPLE Loading @@ -43,12 +45,12 @@ if(curl) { res = curl_easy_perform(curl); curl_easy_getinfo(curl, CURLINFO_SSL_VERIFYRESULT, &verifyresult); printf("The peer verification said %s\\n", verifyresult? "fine":"BAAAD"); "BAAAD":"fine"); curl_easy_cleanup(curl); } .fi .SH AVAILABILITY Added in 7.5 Added in 7.5. Only set by the OpenSSL/libressl/boringssl and NSS backends. .SH RETURN VALUE Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. .SH "SEE ALSO" Loading Loading
docs/libcurl/opts/CURLINFO_SSL_VERIFYRESULT.3 +5 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * .\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms Loading @@ -31,6 +31,8 @@ CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_SSL_VERIFYRESULT, long *result Pass a pointer to a long to receive the result of the server SSL certificate verification that was requested (using the \fICURLOPT_SSL_VERIFYPEER(3)\fP option. 0 is a positive result. Non-zero is an error. .SH PROTOCOLS All using TLS .SH EXAMPLE Loading @@ -43,12 +45,12 @@ if(curl) { res = curl_easy_perform(curl); curl_easy_getinfo(curl, CURLINFO_SSL_VERIFYRESULT, &verifyresult); printf("The peer verification said %s\\n", verifyresult? "fine":"BAAAD"); "BAAAD":"fine"); curl_easy_cleanup(curl); } .fi .SH AVAILABILITY Added in 7.5 Added in 7.5. Only set by the OpenSSL/libressl/boringssl and NSS backends. .SH RETURN VALUE Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. .SH "SEE ALSO" Loading