From b577fd0b81562ab97cf992bfffbdaf531e0d1d8c Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 8 Feb 2016 16:18:26 +0000 Subject: Deprecate undocumented SSL_cache_hit(). Deprecate undocumented SSL_cache_hit(). Make SSL_session_reused() into a real function. Reviewed-by: Richard Levitte --- apps/s_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/s_server.c') diff --git a/apps/s_server.c b/apps/s_server.c index 45e9227f07..f07c8f61a9 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -2612,7 +2612,7 @@ static int init_ssl_connection(SSL *con) srtp_profile->name); } #endif - if (SSL_cache_hit(con)) + if (SSL_session_reused(con)) BIO_printf(bio_s_out, "Reused session-id\n"); BIO_printf(bio_s_out, "Secure Renegotiation IS%s supported\n", SSL_get_secure_renegotiation_support(con) ? "" : " NOT"); @@ -2882,7 +2882,7 @@ static int www_body(const char *hostname, int s, int stype, #ifndef OPENSSL_NO_EC ssl_print_curves(io, con, 0); #endif - BIO_printf(io, (SSL_cache_hit(con) + BIO_printf(io, (SSL_session_reused(con) ? "---\nReused, " : "---\nNew, ")); c = SSL_get_current_cipher(con); BIO_printf(io, "%s, Cipher is %s\n", -- cgit v1.2.3