Skip to content

Commit

Permalink
output negotiated TLS1.3 group
Browse files Browse the repository at this point in the history
Reviewed-by: Tim Hudson <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#25808)
  • Loading branch information
baentsch authored and mattcaswell committed Oct 30, 2024
1 parent a366072 commit 280c1d0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/lib/s_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 280c1d0

Please sign in to comment.