Botan 3.9.0
Crypto and TLS for C&
tls_external_psk.cpp
Go to the documentation of this file.
1/*
2 * TLS 1.3 Preshared Key Container
3 * (C) 2023 Fabian Albert, René Meusel - Rohde & Schwarz Cybersecurity
4 * 2025 Jack Lloyd
5 *
6 * Botan is released under the Simplified BSD License (see license.txt)
7 */
8
9#include <botan/tls_external_psk.h>
10
11#include <botan/assert.h>
12#include <utility>
13
14namespace Botan::TLS {
15
17 BOTAN_STATE_CHECK(!m_master_secret.empty());
18 return std::exchange(m_master_secret, {});
19}
20
21} // namespace Botan::TLS
#define BOTAN_STATE_CHECK(expr)
Definition assert.h:49
secure_vector< uint8_t > extract_master_secret()
std::vector< T, secure_allocator< T > > secure_vector
Definition secmem.h:69