From: Richard Levitte Date: Mon, 6 Oct 2003 12:19:38 +0000 (+0000) Subject: s_client should inform the user of any compression/expansion methods used. X-Git-Tag: BEN_FIPS_TEST_4^2~11^2~80 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f44e184ec61ba858e3048a288ec141903442be06;p=oweals%2Fopenssl.git s_client should inform the user of any compression/expansion methods used. --- diff --git a/apps/s_client.c b/apps/s_client.c index eb6fd7c1c3..0f7dd88613 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -944,6 +944,7 @@ static void print_stuff(BIO *bio, SSL *s, int full) SSL_CIPHER *c; X509_NAME *xn; int j,i; + const COMP_METHOD *comp, *exp; if (full) { @@ -1046,6 +1047,12 @@ static void print_stuff(BIO *bio, SSL *s, int full) EVP_PKEY_bits(pktmp)); EVP_PKEY_free(pktmp); } + comp=SSL_get_current_compression(s); + exp=SSL_get_current_expansion(s); + BIO_printf(bio,"Compression: %s\n", + comp ? SSL_COMP_get_name(comp) : "NONE"); + BIO_printf(bio,"Expansion: %s\n", + exp ? SSL_COMP_get_name(exp) : "NONE"); SSL_SESSION_print(bio,SSL_get_session(s)); BIO_printf(bio,"---\n"); if (peer != NULL)