Botan
1.11.15
|
#include <tls_session_manager.h>
Public Member Functions | |
bool | load_from_server_info (const Server_Information &, Session &) override |
bool | load_from_session_id (const std::vector< byte > &, Session &) override |
void | remove_entry (const std::vector< byte > &) override |
void | save (const Session &) override |
std::chrono::seconds | session_lifetime () const override |
An implementation of Session_Manager that does not save sessions at all, preventing session resumption.
Definition at line 81 of file tls_session_manager.h.
bool Botan::TLS::Session_Manager_Noop::load_from_server_info | ( | const Server_Information & | info, |
Session & | session | ||
) | [inline, override, virtual] |
Try to load a saved session (using info about server)
info | the information about the server |
session | will be set to the saved session data (if found), or not modified if not found |
Implements Botan::TLS::Session_Manager.
Definition at line 87 of file tls_session_manager.h.
{ return false; }
bool Botan::TLS::Session_Manager_Noop::load_from_session_id | ( | const std::vector< byte > & | session_id, |
Session & | session | ||
) | [inline, override, virtual] |
Try to load a saved session (using session ID)
session_id | the session identifier we are trying to resume |
session | will be set to the saved session data (if found), or not modified if not found |
Implements Botan::TLS::Session_Manager.
Definition at line 84 of file tls_session_manager.h.
{ return false; }
void Botan::TLS::Session_Manager_Noop::remove_entry | ( | const std::vector< byte > & | session_id | ) | [inline, override, virtual] |
Remove this session id from the cache, if it exists
Implements Botan::TLS::Session_Manager.
Definition at line 90 of file tls_session_manager.h.
{}
void Botan::TLS::Session_Manager_Noop::save | ( | const Session & | session | ) | [inline, override, virtual] |
Save a session on a best effort basis; the manager may not in fact be able to save the session for whatever reason; this is not an error. Caller cannot assume that calling save followed immediately by load_from_* will result in a successful lookup.
session | to save |
Implements Botan::TLS::Session_Manager.
Definition at line 92 of file tls_session_manager.h.
{}
std::chrono::seconds Botan::TLS::Session_Manager_Noop::session_lifetime | ( | ) | const [inline, override, virtual] |
Return the allowed lifetime of a session; beyond this time, sessions are not resumed. Returns 0 if unknown/no explicit expiration policy.
Implements Botan::TLS::Session_Manager.
Definition at line 94 of file tls_session_manager.h.
{ return std::chrono::seconds(0); }