2018-05-29 22:12:52 +08:00
|
|
|
.\" **************************************************************************
|
|
|
|
.\" * _ _ ____ _
|
|
|
|
.\" * Project ___| | | | _ \| |
|
|
|
|
.\" * / __| | | | |_) | |
|
|
|
|
.\" * | (__| |_| | _ <| |___
|
|
|
|
.\" * \___|\___/|_| \_\_____|
|
|
|
|
.\" *
|
2023-01-02 20:51:48 +08:00
|
|
|
.\" * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2018-05-29 22:12:52 +08:00
|
|
|
.\" *
|
|
|
|
.\" * This software is licensed as described in the file COPYING, which
|
|
|
|
.\" * you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
.\" * are also available at https://curl.se/docs/copyright.html.
|
2018-05-29 22:12:52 +08:00
|
|
|
.\" *
|
|
|
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
.\" * copies of the Software, and permit persons to whom the Software is
|
|
|
|
.\" * furnished to do so, under the terms of the COPYING file.
|
|
|
|
.\" *
|
|
|
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
.\" * KIND, either express or implied.
|
|
|
|
.\" *
|
|
|
|
.\" * SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
.\" *
|
2018-05-29 22:12:52 +08:00
|
|
|
.\" **************************************************************************
|
|
|
|
.\"
|
2023-04-26 14:58:35 +08:00
|
|
|
.TH CURLOPT_TLS13_CIPHERS 3 "25 May 2018" libcurl libcurl
|
2018-05-29 22:12:52 +08:00
|
|
|
.SH NAME
|
2021-09-09 04:55:58 +08:00
|
|
|
CURLOPT_TLS13_CIPHERS \- ciphers suites to use for TLS 1.3
|
2018-05-29 22:12:52 +08:00
|
|
|
.SH SYNOPSIS
|
2021-11-26 21:20:18 +08:00
|
|
|
.nf
|
2018-05-29 22:12:52 +08:00
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TLS13_CIPHERS, char *list);
|
2021-11-26 21:20:18 +08:00
|
|
|
.fi
|
2018-05-29 22:12:52 +08:00
|
|
|
.SH DESCRIPTION
|
2020-06-25 17:38:25 +08:00
|
|
|
Pass a char *, pointing to a null-terminated string holding the list of cipher
|
2018-05-29 22:12:52 +08:00
|
|
|
suites to use for the TLS 1.3 connection. The list must be syntactically
|
|
|
|
correct, it consists of one or more cipher suite strings separated by colons.
|
|
|
|
|
2023-08-22 23:40:39 +08:00
|
|
|
Find more details about cipher lists on this URL:
|
2018-05-29 22:12:52 +08:00
|
|
|
|
2020-11-04 21:02:01 +08:00
|
|
|
https://curl.se/docs/ssl-ciphers.html
|
2018-05-29 22:12:52 +08:00
|
|
|
|
2019-05-27 14:01:18 +08:00
|
|
|
This option is currently used only when curl is built to use OpenSSL 1.1.1 or
|
2023-03-19 16:05:08 +08:00
|
|
|
later, or Schannel. If you are using a different SSL backend you can try
|
2022-09-22 23:07:09 +08:00
|
|
|
setting TLS 1.3 cipher suites by using the \fICURLOPT_SSL_CIPHER_LIST(3)\fP
|
|
|
|
option.
|
2019-05-27 14:01:18 +08:00
|
|
|
|
2018-05-29 22:12:52 +08:00
|
|
|
The application does not have to keep the string around after setting this
|
|
|
|
option.
|
|
|
|
.SH DEFAULT
|
|
|
|
NULL, use internal default
|
|
|
|
.SH PROTOCOLS
|
|
|
|
All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
|
|
|
|
.SH EXAMPLE
|
|
|
|
.nf
|
|
|
|
CURL *curl = curl_easy_init();
|
|
|
|
if(curl) {
|
|
|
|
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
|
|
|
|
curl_easy_setopt(curl, CURLOPT_TLS13_CIPHERS,
|
2022-07-22 22:45:28 +08:00
|
|
|
"TLS_CHACHA20_POLY1305_SHA256");
|
2018-05-29 22:12:52 +08:00
|
|
|
ret = curl_easy_perform(curl);
|
|
|
|
curl_easy_cleanup(curl);
|
|
|
|
}
|
|
|
|
.fi
|
|
|
|
.SH AVAILABILITY
|
2022-07-22 22:45:28 +08:00
|
|
|
Added in 7.61.0 for OpenSSL. Available when built with OpenSSL >= 1.1.1.
|
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
Added in 7.85.0 for Schannel.
|
2018-05-29 22:12:52 +08:00
|
|
|
.SH RETURN VALUE
|
|
|
|
Returns CURLE_OK if supported, CURLE_NOT_BUILT_IN otherwise.
|
|
|
|
.SH "SEE ALSO"
|
2018-10-10 19:00:34 +08:00
|
|
|
.BR CURLOPT_SSL_CIPHER_LIST "(3), " CURLOPT_SSLVERSION "(3), "
|
|
|
|
.BR CURLOPT_PROXY_SSL_CIPHER_LIST "(3), " CURLOPT_PROXY_TLS13_CIPHERS "(3), "
|
|
|
|
.BR CURLOPT_PROXY_SSLVERSION "(3), " CURLOPT_USE_SSL "(3), "
|