Skip to content

Commit b660138

Browse files
authored
Merge pull request #346 from nuxi/show-group-name
Display negotiated TLS 1.3 group name
2 parents 4072a76 + 734f078 commit b660138

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sslscan.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,13 @@ int ssl_print_tmp_key(struct sslCheckOptions *options, SSL *s)
14971497
#ifndef LIBRESSL_VERSION_NUMBER
14981498
EVP_PKEY *key;
14991499
if (!SSL_get_server_tmp_key(s, &key))
1500+
{
1501+
if (SSL_version(s) == TLS1_3_VERSION)
1502+
{
1503+
printf(" Group %s", SSL_group_to_name(s, SSL_get_negotiated_group(s)));
1504+
}
15001505
return 1;
1506+
}
15011507
switch (EVP_PKEY_id(key)) {
15021508
case EVP_PKEY_RSA:
15031509
if (EVP_PKEY_bits(key) <= 1024)

0 commit comments

Comments
 (0)