Make SSL_get_early_data_status() take a const

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2737)
This commit is contained in:
Matt Caswell 2017-02-24 14:17:41 +00:00
parent 46dcb9457e
commit f5b519c416
2 changed files with 2 additions and 2 deletions

View file

@ -1634,7 +1634,7 @@ long SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)(void));
# define SSL_EARLY_DATA_REJECTED 1
# define SSL_EARLY_DATA_ACCEPTED 2
__owur int SSL_get_early_data_status(SSL *s);
__owur int SSL_get_early_data_status(const SSL *s);
__owur int SSL_get_error(const SSL *s, int ret_code);
__owur const char *SSL_get_version(const SSL *s);

View file

@ -1659,7 +1659,7 @@ int ssl_end_of_early_data_seen(SSL *s)
return 0;
}
int SSL_get_early_data_status(SSL *s)
int SSL_get_early_data_status(const SSL *s)
{
return s->ext.early_data;
}