mirror of
https://github.com/curl/curl.git
synced 2026-07-30 14:38:58 +03:00
lib/vtls: prefer rustls-ffi ciphersuite name API
This commit is contained in:
parent
8eab2b7086
commit
21589e20dc
1 changed files with 4 additions and 6 deletions
|
|
@ -1190,17 +1190,15 @@ cr_connect(struct Curl_cfilter *cf,
|
|||
{
|
||||
const uint16_t proto =
|
||||
rustls_connection_get_protocol_version(rconn);
|
||||
const uint16_t cipher =
|
||||
rustls_connection_get_negotiated_ciphersuite(rconn);
|
||||
char buf[64] = "";
|
||||
const rustls_str cipher_name =
|
||||
rustls_connection_get_negotiated_ciphersuite_name(rconn);
|
||||
const char *ver = "TLS version unknown";
|
||||
if(proto == RUSTLS_TLS_VERSION_TLSV1_3)
|
||||
ver = "TLSv1.3";
|
||||
if(proto == RUSTLS_TLS_VERSION_TLSV1_2)
|
||||
ver = "TLSv1.2";
|
||||
Curl_cipher_suite_get_str(cipher, buf, sizeof(buf), TRUE);
|
||||
infof(data, "rustls: handshake complete, %s, cipher: %s",
|
||||
ver, buf);
|
||||
infof(data, "rustls: handshake complete, %s, cipher: %.*s",
|
||||
ver, (int) cipher_name.len, cipher_name.data);
|
||||
}
|
||||
if(data->set.ssl.certinfo) {
|
||||
size_t num_certs = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue