From c04b66b18d1a90f0c6326858e4b8367be5444582 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 17 May 2019 12:35:33 +0200 Subject: 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: Arne Schwabe Reviewed-by: Kurt Roeckx Reviewed-by: Matt Caswell Reviewed-by: Matthias St. Pierre Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/8945) --- ssl/ssl_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ssl') diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 910f82be43..03c768010b 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -4606,7 +4606,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; } -- cgit v1.2.3