Commit 001275d1 authored by Anirudh Ramachandran's avatar Anirudh Ramachandran Committed by Facebook Github Bot

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
parent d84e6482
......@@ -573,8 +573,7 @@ void SSLContext::setSessionCacheContext(const std::string& context) {
ctx_,
reinterpret_cast<const unsigned char*>(context.data()),
std::min<unsigned int>(
static_cast<unsigned int>(context.length()),
SSL_MAX_SSL_SESSION_ID_LENGTH));
static_cast<unsigned int>(context.length()), SSL_MAX_SID_CTX_LENGTH));
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment