Commit 2c5afadc authored by Arne Schwabe's avatar Arne Schwabe Committed by Pauli
Browse files

Change SSL parameter SSL_session_reused const



This function only returns a status and does not modify the parameter.
Since similar function are already taking const parameters, also
change this function to have a const parameter.

Fixes #8934

CLA: trivial
Signed-off-by: default avatarArne Schwabe <arne@rfc2549.org>

Reviewed-by: default avatarKurt Roeckx <kurt@roeckx.be>
Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
Reviewed-by: default avatarMatthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: default avatarPaul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8945)

(cherry picked from commit c04b66b18d1a90f0c6326858e4b8367be5444582)
parent fa00e0da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ SSL_session_reused - query whether a reused session was negotiated during handsh

 #include <openssl/ssl.h>

 int SSL_session_reused(SSL *ssl);
 int SSL_session_reused(const SSL *ssl);

=head1 DESCRIPTION

+1 −1
Original line number Diff line number Diff line
@@ -2139,7 +2139,7 @@ size_t SSL_CTX_get_num_tickets(const SSL_CTX *ctx);
#  define SSL_cache_hit(s) SSL_session_reused(s)
# endif

__owur int SSL_session_reused(SSL *s);
__owur int SSL_session_reused(const SSL *s);
__owur int SSL_is_server(const SSL *s);

__owur __owur SSL_CONF_CTX *SSL_CONF_CTX_new(void);
+1 −1
Original line number Diff line number Diff line
@@ -4478,7 +4478,7 @@ int ssl_handshake_hash(SSL *s, unsigned char *out, size_t outlen,
    return ret;
}

int SSL_session_reused(SSL *s)
int SSL_session_reused(const SSL *s)
{
    return s->hit;
}