1CURLOPT_SSL_VERIFYSTATUS(3)curl_easy_setopt optionsCURLOPT_SSL_VERIFYSTATUS(3)
2
3
4

NAME

6       CURLOPT_SSL_VERIFYSTATUS - verify the certificate's status
7

SYNOPSIS

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

DESCRIPTION

14       Pass a long as parameter set to 1 to enable or 0 to disable.
15
16       This  option  determines  whether  libcurl  verifies  the status of the
17       server cert using the "Certificate Status Request" TLS extension  (aka.
18       OCSP stapling).
19
20       Note that if this option is enabled but the server does not support the
21       TLS extension, the verification will fail.
22

DEFAULT

24       0
25

PROTOCOLS

27       All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
28

EXAMPLE

30       CURL *curl = curl_easy_init();
31       if(curl) {
32         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
33         /* ask for OCSP stapling! */
34         curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 1L);
35         ret = curl_easy_perform(curl);
36         curl_easy_cleanup(curl);
37       }
38

AVAILABILITY

40       Added in 7.41.0.  This  option  is  currently  only  supported  by  the
41       OpenSSL, GnuTLS and NSS TLS backends.
42

RETURN VALUE

44       Returns CURLE_OK if OCSP stapling is supported by the SSL backend, oth‐
45       erwise returns CURLE_NOT_BUILT_IN.
46

SEE ALSO

48       CURLOPT_SSL_VERIFYHOST(3),       CURLOPT_SSL_VERIFYPEER(3),        CUR‐
49       LOPT_CAINFO(3),
50
51
52
53libcurl 7.82.0                 November 26, 2021   CURLOPT_SSL_VERIFYSTATUS(3)
Impressum