From: Matt Caswell Date: Tue, 2 May 2017 10:00:50 +0000 (+0100) Subject: Make SSL_is_server() accept a const SSL X-Git-Tag: OpenSSL_1_1_1-pre1~1490 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6944311688015ad293bd788ce78f3226738ebf00;p=openssl Make SSL_is_server() accept a const SSL Fixes #1526 Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3360) --- diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 20ec1e5d46..a2d6862831 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -1996,7 +1996,7 @@ int SSL_set_block_padding(SSL *ssl, size_t block_size); # 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); diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index b81b9ea477..de63f84fc4 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -4015,7 +4015,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; }