Botan 3.11.0
Crypto and TLS for C&
tls_session_manager_noop.cpp
Go to the documentation of this file.
1/*
2* TLS Session Manager Noop
3* (C) 2011 Jack Lloyd
4* 2023 René Meusel - Rohde & Schwarz Cybersecurity
5*
6* Botan is released under the Simplified BSD License (see license.txt)
7*/
8
9#include <botan/tls_session_manager_noop.h>
10
11#include <botan/rng.h>
12#include <botan/tls_session.h>
13
14namespace Botan::TLS {
15
17
18std::optional<Session_Handle> Session_Manager_Noop::establish(const Session& /*session*/,
19 const std::optional<Session_ID>& /*session_id*/,
20 bool /*tls12_no_ticket*/) {
21 return {};
22}
23
24std::optional<Session> Session_Manager_Noop::retrieve_one(const Session_Handle& /*handle*/) {
25 return {};
26}
27
28std::vector<Session_with_Handle> Session_Manager_Noop::find_some(const Server_Information& /*info*/,
29 size_t /*max_sessions_hint*/) {
30 return {};
31}
32
33} // namespace Botan::TLS
Helper class to embody a session handle in all protocol versions.
std::vector< Session_with_Handle > find_some(const Server_Information &info, size_t max_sessions_hint) override
Internal retrieval function to find sessions to resume.
std::optional< Session > retrieve_one(const Session_Handle &handle) override
Internal retrieval function for a single session.
std::optional< Session_Handle > establish(const Session &session, const std::optional< Session_ID > &session_id=std::nullopt, bool tls12_no_ticket=false) override
Save a new Session and assign a Session_Handle (TLS Server).
BOTAN_FUTURE_EXPLICIT Session_Manager(const std::shared_ptr< RandomNumberGenerator > &rng)