1CURLOPT_SSL_CIPHER_LIST(3) curl_easy_setopt options CURLOPT_SSL_CIPHER_LIST(3)
2
3
4

NAME

6       CURLOPT_SSL_CIPHER_LIST - ciphers to use for TLS
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSL_CIPHER_LIST, char *list);
12

DESCRIPTION

14       Pass a char *, pointing to a null-terminated string holding the list of
15       ciphers to use for the SSL connection. The list must  be  syntactically
16       correct, it consists of one or more cipher strings separated by colons.
17       Commas or spaces are also acceptable separators but colons are normally
18       used, !, - and + can be used as operators.
19
20       For  OpenSSL and GnuTLS valid examples of cipher lists include RC4-SHA,
21       SHA1+DES, TLSv1 and DEFAULT. The default list is normally set when  you
22       compile OpenSSL.
23
24       For  NSS,  valid  examples  of  cipher  lists  include rsa_rc4_128_md5,
25       rsa_aes_128_sha, etc. With NSS you do not add/remove  ciphers.  If  one
26       uses  this  option  then  all known ciphers are disabled and only those
27       passed in are enabled.
28
29       For WolfSSL, valid examples of cipher lists include  ECDHE-RSA-RC4-SHA,
30       AES256-SHA:AES256-SHA256, etc.
31
32       you will find more details about cipher lists on this URL:
33
34        https://curl.se/docs/ssl-ciphers.html
35
36       The  application  does not have to keep the string around after setting
37       this option.
38

DEFAULT

40       NULL, use internal default
41

PROTOCOLS

43       All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
44

EXAMPLE

46       CURL *curl = curl_easy_init();
47       if(curl) {
48         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
49         curl_easy_setopt(curl, CURLOPT_SSL_CIPHER_LIST, "TLSv1");
50         ret = curl_easy_perform(curl);
51         curl_easy_cleanup(curl);
52       }
53

AVAILABILITY

55       If built TLS enabled.
56

RETURN VALUE

58       Returns CURLE_OK if TLS is supported, CURLE_UNKNOWN_OPTION if  not,  or
59       CURLE_OUT_OF_MEMORY if there was insufficient heap space.
60

SEE ALSO

62       CURLOPT_TLS13_CIPHERS(3),  CURLOPT_SSLVERSION(3), CURLOPT_PROXY_SSL_CI‐
63       PHER_LIST(3), CURLOPT_PROXY_TLS13_CIPHERS(3), CURLOPT_USE_SSL(3),
64
65
66
67libcurl 7.82.0                 November 26, 2021    CURLOPT_SSL_CIPHER_LIST(3)
Impressum