]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib/vtls: log rustls negotiated KEX group name
authorDaniel McCarney <daniel@binaryparadox.net>
Fri, 11 Jul 2025 20:00:01 +0000 (16:00 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 12 Jul 2025 17:26:41 +0000 (19:26 +0200)
Closes #17906

lib/vtls/rustls.c

index 8ce630581e0ace298821d7eae47e2153d6b589b4..4e1b78a759d16ed2360e9308646c5d890be7d92b 100644 (file)
@@ -1192,16 +1192,21 @@ cr_connect(struct Curl_cfilter *cf,
           rustls_connection_get_protocol_version(rconn);
         const rustls_str ciphersuite_name =
           rustls_connection_get_negotiated_ciphersuite_name(rconn);
+        const rustls_str kex_group_name =
+          rustls_connection_get_negotiated_key_exchange_group_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, ciphersuite: %.*s",
+              "rustls: handshake complete, %s, ciphersuite: %.*s, "
+              "key exchange group: %.*s",
               ver,
               (int) ciphersuite_name.len,
-              ciphersuite_name.data);
+              ciphersuite_name.data,
+              (int) kex_group_name.len,
+              kex_group_name.data);
       }
       if(data->set.ssl.certinfo) {
         size_t num_certs = 0;