提交 46dcb945 编写于 作者: M Matt Caswell

Make SSL_get_max_early_data() and SSL_CTX_get_max_early_data() take a const

Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2737)
上级 fcc47578
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册