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