Skip to content

Commit

Permalink
Make SSL_is_server() accept a const SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcaswell committed May 2, 2017
1 parent c649d10 commit 90f20ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/openssl/ssl.h
Expand Up @@ -1972,7 +1972,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);
Expand Down
2 changes: 1 addition & 1 deletion ssl/ssl_lib.c
Expand Up @@ -4009,7 +4009,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;
}
Expand Down

0 comments on commit 90f20ac

Please sign in to comment.