Fix a typo in the SSL_get_max_early_data() declarations

SSL_get_max_early_data() recently added by 3fc8d85610 ("Construct the
ticket_early_data_info extension", 2017-02-17) is supposed to take an
SSL, but it doesn't.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3113)
This commit is contained in:
Kazuki Yamaguchi 2017-03-31 01:54:39 +09:00 committed by Matt Caswell
parent a4750ce55e
commit a8e75d5680
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ SSL_get_early_data_status
int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data);
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(const SSL_CTX *s);
uint32_t SSL_get_max_early_data(const SSL *s);
uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *s);
int SSL_write_early_data(SSL *s, const void *buf, size_t num, size_t *written);

View File

@ -800,7 +800,7 @@ 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(const SSL_CTX *ctx);
int SSL_set_max_early_data(SSL *s, uint32_t max_early_data);
uint32_t SSL_get_max_early_data(const SSL_CTX *s);
uint32_t SSL_get_max_early_data(const SSL *s);
#ifdef __cplusplus
}

View File

@ -4810,7 +4810,7 @@ int SSL_set_max_early_data(SSL *s, uint32_t max_early_data)
return 1;
}
uint32_t SSL_get_max_early_data(const SSL_CTX *s)
uint32_t SSL_get_max_early_data(const SSL *s)
{
return s->max_early_data;
}