Make SSL_is_server() accept a const SSL
authorMatt Caswell <matt@openssl.org>
Tue, 2 May 2017 10:00:50 +0000 (11:00 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 19 May 2017 08:01:07 +0000 (09:01 +0100)
Fixes #1526

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3360)
(cherry picked from commit 6944311688015ad293bd788ce78f3226738ebf00)

include/openssl/ssl.h
ssl/ssl_lib.c

index b2132f3dc2d2ad583e16e79550ed530049510b9c..6f0f361d7e6c05a24c67ffb2ab4c0be21ee7ff6d 100644 (file)
@@ -1832,7 +1832,7 @@ void SSL_set_not_resumable_session_callback(SSL *ssl,
 # endif
 
 __owur int SSL_session_reused(SSL *s);
-__owur int SSL_is_server(SSL *s);
+__owur int SSL_is_server(const SSL *s);
 
 __owur __owur SSL_CONF_CTX *SSL_CONF_CTX_new(void);
 int SSL_CONF_CTX_finish(SSL_CONF_CTX *cctx);
index cf246157cec2146977676c1f441a206c85646bb7..9f9dce6c1e1de11a4b2c62beef2f00bf9ad23a4e 100644 (file)
@@ -3776,7 +3776,7 @@ int SSL_session_reused(SSL *s)
     return s->hit;
 }
 
-int SSL_is_server(SSL *s)
+int SSL_is_server(const SSL *s)
 {
     return s->server;
 }