diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index ec8eba21..6fd5b3b5 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -3379,7 +3379,7 @@ DECLARE_STACK_OF(SSL_COMP) #define SSL_OP_TLS_ROLLBACK_BUG 0 #define SSL_VERIFY_CLIENT_ONCE 0 -/* SSL_cache_hit calls |SSL_session_resumed|. */ +/* SSL_cache_hit calls |SSL_session_reused|. */ OPENSSL_EXPORT int SSL_cache_hit(SSL *ssl); /* SSL_get_default_timeout returns |SSL_DEFAULT_SESSION_TIMEOUT|. */ diff --git a/ssl/ssl_session.c b/ssl/ssl_session.c index 006e6350..55534006 100644 --- a/ssl/ssl_session.c +++ b/ssl/ssl_session.c @@ -368,8 +368,7 @@ SSL_SESSION *SSL_magic_pending_session_ptr(void) { return (SSL_SESSION *)&g_pending_session_magic; } -SSL_SESSION *SSL_get_session(const SSL *ssl) -{ +SSL_SESSION *SSL_get_session(const SSL *ssl) { /* Once the handshake completes we return the established session. Otherwise * we return the intermediate session, either |session| (for resumption) or * |new_session| if doing a full handshake. */