mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
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:
parent
fcc4757823
commit
46dcb9457e
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user