summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerbsland-dev <github@erbsland.dev>2024-07-17 23:21:42 +0200
committerTomas Mraz <tomas@openssl.org>2024-08-20 11:16:22 +0200
commitdc6993a625c3050125d8b69bcca05ef37555ebb3 (patch)
tree95fdeb292a8c452dd1c0edbff1117436afaeec73
parenttest: add command line indicator option checking to fipsinstall (diff)
downloadopenssl-dc6993a625c3050125d8b69bcca05ef37555ebb3.tar.xz
openssl-dc6993a625c3050125d8b69bcca05ef37555ebb3.zip
Enhance s_client Output
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)
-rw-r--r--apps/s_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index 506048818b..294f0915de 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -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;