CURLOPT_PROXY_TLS13_CIPHERS.3 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .\" generated by cd2nroff 0.1 from CURLOPT_PROXY_TLS13_CIPHERS.md
  2. .TH CURLOPT_PROXY_TLS13_CIPHERS 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLOPT_PROXY_TLS13_CIPHERS \- ciphers suites for proxy TLS 1.3
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_TLS13_CIPHERS,
  9. char *list);
  10. .fi
  11. .SH DESCRIPTION
  12. Pass a char pointer, pointing to a null\-terminated string holding the list of
  13. cipher suites to use for the TLS 1.3 connection to a proxy. The list must be
  14. syntactically correct, it consists of one or more cipher suite strings
  15. separated by colons.
  16. Find more details about cipher lists on this URL:
  17. https://curl.se/docs/ssl\-ciphers.html
  18. This option is currently used only when curl is built to use OpenSSL 1.1.1 or
  19. later. If you are using a different SSL backend you can try setting TLS 1.3
  20. cipher suites by using the \fICURLOPT_PROXY_SSL_CIPHER_LIST(3)\fP 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 list
  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_PROXY_TLS13_CIPHERS,
  38. "TLS_CHACHA20_POLY1305_SHA256");
  39. res = curl_easy_perform(curl);
  40. curl_easy_cleanup(curl);
  41. }
  42. }
  43. .fi
  44. .SH AVAILABILITY
  45. Added in curl 7.61.0
  46. .SH RETURN VALUE
  47. Returns CURLE_OK if supported, CURLE_NOT_BUILT_IN otherwise.
  48. .SH SEE ALSO
  49. .BR CURLOPT_PROXY_SSLVERSION (3),
  50. .BR CURLOPT_PROXY_SSL_CIPHER_LIST (3),
  51. .BR CURLOPT_SSLVERSION (3),
  52. .BR CURLOPT_SSL_CIPHER_LIST (3),
  53. .BR CURLOPT_TLS13_CIPHERS (3)