1CURLOPT_SSL_EC_CURVES(3) curl_easy_setopt options CURLOPT_SSL_EC_CURVES(3)
2
3
4
6 CURLOPT_SSL_EC_CURVES - set key exchange curves
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSL_EC_CURVES, char
12 *alg_list);
13
15 Pass a string as parameter with a colon delimited list of (EC) algo‐
16 rithms. This option defines the client's key exchange algorithms in the
17 SSL handshake (if the SSL backend libcurl is built to use supports it).
18
20 "", embedded in SSL backend
21
23 HTTP
24
26 CURL *curl = curl_easy_init();
27 if(curl) {
28 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
29 curl_easy_setopt(curl, CURLOPT_SSL_EC_CURVES, "X25519:P-521");
30 ret = curl_easy_perform(curl);
31 curl_easy_cleanup(curl);
32 }
33
35 Added in 7.73.0. Supported by the OpenSSL backend.
36
38 Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION
39 if not.
40
42 CURLOPT_SSL_OPTIONS(3), CURLOPT_SSL_CIPHER_LIST(3), CURLOPT_TLS13_CI‐
43 PHERS(3),
44
45
46
47libcurl 7.76.1 November 04, 2020 CURLOPT_SSL_EC_CURVES(3)