From 0c8d9469eab02e2cf8bfd9a6adcbfa81a1ebdfe9 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 27 Mar 2017 23:58:49 +0900 Subject: [PATCH] nghttpx: Use SSL_CTX_set_early_data_enabled with boringssl --- src/shrpx_ssl.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shrpx_ssl.cc b/src/shrpx_ssl.cc index 59ecbff6..64a0ca8c 100644 --- a/src/shrpx_ssl.cc +++ b/src/shrpx_ssl.cc @@ -807,6 +807,10 @@ SSL_CTX *create_ssl_context(const char *private_key_file, const char *cert_file, #endif // OPENSSL_IS_BORINGSSL SSL_CTX_set_info_callback(ssl_ctx, info_callback); +#ifdef OPENSSL_IS_BORINGSSL + SSL_CTX_set_early_data_enabled(ssl_ctx, 1); +#endif // OPENSSL_IS_BORINGSSL + // NPN advertisement SSL_CTX_set_next_protos_advertised_cb(ssl_ctx, next_proto_cb, nullptr); #if OPENSSL_VERSION_NUMBER >= 0x10002000L