]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
output negotiated TLS1.3 group
authorMichael Baentsch <57787676+baentsch@users.noreply.github.com>
Sun, 27 Oct 2024 07:56:11 +0000 (08:56 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 30 Oct 2024 11:39:29 +0000 (11:39 +0000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25808)

apps/lib/s_cb.c

index e94c5d6121459451081b2791415cc502c8b9bd5e..3b3c0dd0b38f5f2671a23ff2b895762e650cdb54 100644 (file)
@@ -1326,12 +1326,13 @@ void print_ssl_summary(SSL *s)
     ssl_print_point_formats(bio_err, s);
     if (SSL_is_server(s))
         ssl_print_groups(bio_err, s, 1);
-    else
-        ssl_print_tmp_key(bio_err, s);
-#else
-    if (!SSL_is_server(s))
-        ssl_print_tmp_key(bio_err, s);
 #endif
+    if (!SSL_is_server(s)) {
+        if (SSL_version(s) == TLS1_3_VERSION)
+            BIO_printf(bio_err, "Negotiated TLS1.3 group: %s\n",
+                       SSL_group_to_name(s, SSL_get_negotiated_group(s)));
+        ssl_print_tmp_key(bio_err, s);
+    }
 }
 
 int config_ctx(SSL_CONF_CTX *cctx, STACK_OF(OPENSSL_STRING) *str,