From bfa9a9afe82e603339801da73ddbabd02d919888 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 23 Feb 2017 16:41:15 +0000 Subject: [PATCH] Provide a default value for max_early_data Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2737) --- ssl/ssl_lib.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.25.1