Botan
3.9.0
Crypto and TLS for C&
src
lib
tls
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
14
namespace
Botan::TLS
{
15
16
secure_vector<uint8_t>
ExternalPSK::extract_master_secret
() {
17
BOTAN_STATE_CHECK
(!m_master_secret.empty());
18
return
std::exchange(m_master_secret, {});
19
}
20
21
}
// namespace Botan::TLS
BOTAN_STATE_CHECK
#define BOTAN_STATE_CHECK(expr)
Definition
assert.h:49
Botan::TLS::ExternalPSK::extract_master_secret
secure_vector< uint8_t > extract_master_secret()
Definition
tls_external_psk.cpp:16
Botan::TLS
Definition
asio_context.cpp:17
Botan::secure_vector
std::vector< T, secure_allocator< T > > secure_vector
Definition
secmem.h:69
Generated by
1.14.0