From 001275d1666609257f21a88b488ae060f73551e7 Mon Sep 17 00:00:00 2001 From: Anirudh Ramachandran Date: Mon, 11 Sep 2017 04:54:57 -0700 Subject: [PATCH] Move SSL_CTX sessionContext initialization into main SSL_CTX initialization path Summary: This field was only previously set if setupSessionCache was called on the wangle::ServerSSLContext Reviewed By: yfeldblum Differential Revision: D5776057 fbshipit-source-id: ecdbe83816fee2ecbe7ea1b26a67b682a571309a --- folly/io/async/SSLContext.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/folly/io/async/SSLContext.cpp b/folly/io/async/SSLContext.cpp index 58f6defa..aee7ec75 100644 --- a/folly/io/async/SSLContext.cpp +++ b/folly/io/async/SSLContext.cpp @@ -573,8 +573,7 @@ void SSLContext::setSessionCacheContext(const std::string& context) { ctx_, reinterpret_cast(context.data()), std::min( - static_cast(context.length()), - SSL_MAX_SSL_SESSION_ID_LENGTH)); + static_cast(context.length()), SSL_MAX_SID_CTX_LENGTH)); } /** -- 2.34.1