diff options
author | Matt Caswell <matt@openssl.org> | 2017-02-23 16:41:15 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-03-02 17:44:15 +0000 |
commit | bfa9a9afe82e603339801da73ddbabd02d919888 (patch) | |
tree | 97d7e59a81369dabd9e524562bfe5787178593ff /ssl | |
parent | 70ef40a05e06d055a89c6c8f9309f047e7e834f1 (diff) |
Provide a default value for max_early_data
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2737)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 2f62f4b0e1..49b43543bc 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -2772,6 +2772,12 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth) ret->ext.status_type = TLSEXT_STATUSTYPE_nothing; + /* + * Default max early data is a fully loaded single record. Could be split + * across multiple records in practice + */ + ret->max_early_data = SSL3_RT_MAX_PLAIN_LENGTH; + return ret; err: SSLerr(SSL_F_SSL_CTX_NEW, ERR_R_MALLOC_FAILURE); |