From 308922ed043f0d865a4f40807ee747d9fba0553e Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Fri, 11 Jul 2025 15:56:04 -0400 Subject: [PATCH] lib/vtls: prefer ciphersuite to cipher in msgs Closes #17906 --- lib/vtls/rustls.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/vtls/rustls.c b/lib/vtls/rustls.c index a9df489dfc..8ce630581e 100644 --- a/lib/vtls/rustls.c +++ b/lib/vtls/rustls.c @@ -1190,15 +1190,18 @@ cr_connect(struct Curl_cfilter *cf, { const uint16_t proto = rustls_connection_get_protocol_version(rconn); - const rustls_str cipher_name = + const rustls_str ciphersuite_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"; - infof(data, "rustls: handshake complete, %s, cipher: %.*s", - ver, (int) cipher_name.len, cipher_name.data); + infof(data, + "rustls: handshake complete, %s, ciphersuite: %.*s", + ver, + (int) ciphersuite_name.len, + ciphersuite_name.data); } if(data->set.ssl.certinfo) { size_t num_certs = 0;