Make SSL_get_max_early_data() and SSL_CTX_get_max_early_data() 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:08:59 +00:00
parent fcc4757823
commit 46dcb9457e
2 changed files with 4 additions and 4 deletions

View File

@ -798,9 +798,9 @@ void SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb);
SSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);
int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data);
uint32_t SSL_CTX_get_max_early_data(SSL_CTX *ctx);
uint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx);
int SSL_set_max_early_data(SSL *s, uint32_t max_early_data);
uint32_t SSL_get_max_early_data(SSL_CTX *s);
uint32_t SSL_get_max_early_data(const SSL_CTX *s);
#ifdef __cplusplus
}

View File

@ -4815,7 +4815,7 @@ int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data)
return 1;
}
uint32_t SSL_CTX_get_max_early_data(SSL_CTX *ctx)
uint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx)
{
return ctx->max_early_data;
}
@ -4827,7 +4827,7 @@ int SSL_set_max_early_data(SSL *s, uint32_t max_early_data)
return 1;
}
uint32_t SSL_get_max_early_data(SSL_CTX *s)
uint32_t SSL_get_max_early_data(const SSL_CTX *s)
{
return s->max_early_data;
}