53 const std::shared_ptr<Credentials_Manager>& credentials_manager,
54 const std::shared_ptr<RandomNumberGenerator>& rng,
55 bool prefer_tickets =
true);
57 std::optional<Session_Handle> establish(
const Session& session,
58 const std::optional<Session_ID>&
id = std::nullopt,
59 bool tls12_no_ticket =
false)
override;
63 const Policy& policy)
override;
67 const Policy& policy)
override {
68 return m_stateful->find(info, callbacks, policy);
75 size_t remove_all()
override {
return m_stateful->remove_all(); }
77 bool emits_session_tickets()
override;
85 std::optional<Session> retrieve_one(
const Session_Handle& handle)
override;
87 std::vector<Session_with_Handle> find_some(
const Server_Information& info,
size_t max_sessions_hint)
override;
90 std::unique_ptr<Session_Manager> m_stateful;
93 bool m_prefer_tickets;