12 #include <unordered_map> 34 const std::vector<SignatureScheme>& supportedSigSchemes,
35 const std::vector<SignatureScheme>& peerSigSchemes)
const;
43 void addCert(std::shared_ptr<SelfCert> cert,
bool defaultCert =
false);
48 const std::vector<SignatureScheme>& supportedSigSchemes,
49 const std::vector<SignatureScheme>& peerSigSchemes,
53 std::shared_ptr<SelfCert> cert,
56 using SigSchemeMap = std::map<SignatureScheme, std::shared_ptr<SelfCert>>;
57 std::unordered_map<std::string, SigSchemeMap>
certs_;
58 std::unordered_map<std::string, std::shared_ptr<SelfCert>>
identMap_;
virtual CertMatch getCert(const folly::Optional< std::string > &sni, const std::vector< SignatureScheme > &supportedSigSchemes, const std::vector< SignatureScheme > &peerSigSchemes) const
virtual ~CertManager()=default
std::map< SignatureScheme, std::shared_ptr< SelfCert >> SigSchemeMap
void addCertIdentity(std::shared_ptr< SelfCert > cert, const std::string &ident)
void addCert(std::shared_ptr< SelfCert > cert, bool defaultCert=false)
std::unordered_map< std::string, SigSchemeMap > certs_
CertMatch findCert(const std::string &key, const std::vector< SignatureScheme > &supportedSigSchemes, const std::vector< SignatureScheme > &peerSigSchemes, CertMatch &lastResort) const
std::unordered_map< std::string, std::shared_ptr< SelfCert > > identMap_