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
12       verify);
13

DESCRIPTION

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

DEFAULT

25       0
26

PROTOCOLS

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

EXAMPLE

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

AVAILABILITY

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

RETURN VALUE

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

SEE ALSO

49       CURLOPT_SSL_VERIFYHOST(3),        CURLOPT_SSL_VERIFYPEER(3),       CUR‐
50       LOPT_CAINFO(3),
51
52
53
54libcurl 7.69.1                 October 09, 2018    CURLOPT_SSL_VERIFYSTATUS(3)
Impressum