From: Matt Caswell Date: Fri, 24 Feb 2017 14:17:41 +0000 (+0000) Subject: Make SSL_get_early_data_status() take a const X-Git-Tag: OpenSSL_1_1_1-pre1~2145 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f5b519c416ad70f0bc0e9a5750be1367224eee5a;p=oweals%2Fopenssl.git Make SSL_get_early_data_status() take a const Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2737) --- diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index dcd2b08b19..e88d99bd95 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -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); diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 70ff932b23..b36e4a7eaf 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -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; }