From: Anirudh Ramachandran Date: Mon, 11 Sep 2017 11:54:57 +0000 (-0700) Subject: Move SSL_CTX sessionContext initialization into main SSL_CTX initialization path X-Git-Tag: v2017.09.18.00~20 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=001275d1666609257f21a88b488ae060f73551e7;p=folly.git 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 --- 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)); } /**