Make SSL_is_server() accept a const SSL
Fixes #1526 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3360)
This commit is contained in:
parent
fb34a0f4e0
commit
6944311688
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue