From 313398058676b0799f2f26844cd5af86ab0821fa Mon Sep 17 00:00:00 2001 From: Gabriel Schell Date: Thu, 30 May 2024 14:03:06 -0700 Subject: [PATCH] Move default cert flag to a separate method Summary: Reintroduction of D57737100 with fix for Thrift build Differential Revision: D57970247 fbshipit-source-id: 55815037522533aadf01f04813a4edb6b050a30b --- mcrouter/lib/network/FizzContextProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcrouter/lib/network/FizzContextProvider.cpp b/mcrouter/lib/network/FizzContextProvider.cpp index d4334a63e..51e64dd76 100644 --- a/mcrouter/lib/network/FizzContextProvider.cpp +++ b/mcrouter/lib/network/FizzContextProvider.cpp @@ -80,7 +80,7 @@ std::shared_ptr createFizzServerContext( auto selfCert = fizz::openssl::CertUtils::makeSelfCert(certData.str(), keyData.str()); // add the default cert - certMgr->addCert(std::move(selfCert), true); + certMgr->addCertAndSetDefault(std::move(selfCert)); } catch (const std::exception& ex) { LOG_FAILURE( "SSLCert",