]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Enhance s_client Output
authorerbsland-dev <github@erbsland.dev>
Wed, 17 Jul 2024 21:21:42 +0000 (23:21 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 20 Aug 2024 09:16:22 +0000 (11:16 +0200)
Fixes #8123: Clarify cipher and protocol version display
- Added a new line “Protocol:” to display the protocol version separately after the cipher line.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24921)

apps/s_client.c

index 506048818b62e49ce51441368c22d43256f79947..294f0915de49201a1ff86e4341c766b8097f0ab0 100644 (file)
@@ -3486,6 +3486,7 @@ static void print_stuff(BIO *bio, SSL *s, int full)
     c = SSL_get_current_cipher(s);
     BIO_printf(bio, "%s, Cipher is %s\n",
                SSL_CIPHER_get_version(c), SSL_CIPHER_get_name(c));
+    BIO_printf(bio, "Protocol: %s\n", SSL_get_version(s));
     if (peer != NULL) {
         EVP_PKEY *pktmp;