From f5b519c416ad70f0bc0e9a5750be1367224eee5a Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 24 Feb 2017 14:17:41 +0000 Subject: [PATCH] Make SSL_get_early_data_status() take a const Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2737) --- include/openssl/ssl.h | 2 +- ssl/ssl_lib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }