15 #include <unordered_map> 56 virtual void removePsk(
const std::string& identity) = 0;
68 auto result = cache_.find(identity);
69 if (result != cache_.end()) {
70 return result->second;
81 cache_.erase(identity);
85 std::unordered_map<std::string, CachedPsk>
cache_;
std::shared_ptr< const Cert > clientCert
std::chrono::system_clock::time_point ticketIssueTime
folly::Optional< std::string > alpn
constexpr detail::Map< Move > move
void removePsk(const std::string &identity) override
void putPsk(const std::string &identity, CachedPsk psk) override
folly::Optional< NamedGroup > group
std::unordered_map< std::string, CachedPsk > cache_
std::shared_ptr< const Cert > serverCert
folly::Optional< CachedPsk > getPsk(const std::string &identity) override
uint32_t maxEarlyDataSize
std::chrono::system_clock::time_point ticketExpirationTime