CURLOPT_TLS13_CIPHERS.3 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .\" generated by cd2nroff 0.1 from CURLOPT_TLS13_CIPHERS.md
  2. .TH CURLOPT_TLS13_CIPHERS 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLOPT_TLS13_CIPHERS \- ciphers suites to use for TLS 1.3
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TLS13_CIPHERS, char *list);
  9. .fi
  10. .SH DESCRIPTION
  11. Pass a char pointer, pointing to a null\-terminated string holding the list of
  12. cipher suites to use for the TLS 1.3 connection. The list must be
  13. syntactically correct, it consists of one or more cipher suite strings
  14. separated by colons.
  15. Find more details about cipher lists on this URL:
  16. https://curl.se/docs/ssl\-ciphers.html
  17. This option is currently used only when curl is built to use OpenSSL 1.1.1 or
  18. later, or Schannel. If you are using a different SSL backend you can try
  19. setting TLS 1.3 cipher suites by using the \fICURLOPT_SSL_CIPHER_LIST(3)\fP
  20. option.
  21. The application does not have to keep the string around after setting this
  22. option.
  23. .SH DEFAULT
  24. NULL, use internal built\-in
  25. .SH PROTOCOLS
  26. This functionality affects all TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
  27. This option works only with the following TLS backends:
  28. OpenSSL and Schannel
  29. .SH EXAMPLE
  30. .nf
  31. int main(void)
  32. {
  33. CURL *curl = curl_easy_init();
  34. if(curl) {
  35. CURLcode res;
  36. curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
  37. curl_easy_setopt(curl, CURLOPT_TLS13_CIPHERS,
  38. "TLS_CHACHA20_POLY1305_SHA256");
  39. res = curl_easy_perform(curl);
  40. curl_easy_cleanup(curl);
  41. }
  42. }
  43. .fi
  44. .SH HISTORY
  45. Added in 7.61.0 for OpenSSL. Available when built with OpenSSL >= 1.1.1.
  46. Added in 7.85.0 for Schannel.
  47. .SH AVAILABILITY
  48. Added in curl 7.61.0
  49. .SH RETURN VALUE
  50. Returns CURLE_OK if supported, CURLE_NOT_BUILT_IN otherwise.
  51. .SH SEE ALSO
  52. .BR CURLOPT_PROXY_SSLVERSION (3),
  53. .BR CURLOPT_PROXY_SSL_CIPHER_LIST (3),
  54. .BR CURLOPT_PROXY_TLS13_CIPHERS (3),
  55. .BR CURLOPT_SSLVERSION (3),
  56. .BR CURLOPT_SSL_CIPHER_LIST (3),
  57. .BR CURLOPT_USE_SSL (3)