Botan 3.6.1
Crypto and TLS for C&
|
#include <tls_psk_identity_13.h>
Public Member Functions | |
std::chrono::milliseconds | age (uint32_t ticket_age_add) const |
const std::vector< uint8_t > & | identity () const |
std::string | identity_as_string () const |
uint32_t | obfuscated_age () const |
PskIdentity (Opaque_Session_Handle identity, std::chrono::milliseconds age, uint32_t ticket_age_add) | |
PskIdentity (PresharedKeyID identity) | |
PskIdentity (std::vector< uint8_t > identity, const uint32_t obfuscated_age) | |
Represents a TLS 1.3 PSK identity as found in the Preshared Key extension with an opaque identity and an associated (obfuscated) ticket age. The latter is not applicable for externally provided PSKs.
Definition at line 30 of file tls_psk_identity_13.h.
|
inline |
Construct from information provided in the peer's ClientHello
Definition at line 35 of file tls_psk_identity_13.h.
Botan::TLS::PskIdentity::PskIdentity | ( | Opaque_Session_Handle | identity, |
std::chrono::milliseconds | age, | ||
uint32_t | ticket_age_add ) |
Construct from a session stored by the client
Definition at line 28 of file tls_psk_identity_13.cpp.
Botan::TLS::PskIdentity::PskIdentity | ( | PresharedKeyID | identity | ) |
Construct from an externally provided PSK in the client
Definition at line 33 of file tls_psk_identity_13.cpp.
std::chrono::milliseconds Botan::TLS::PskIdentity::age | ( | uint32_t | ticket_age_add | ) | const |
If this represents a PSK for session resumption, it returns the session's age given the de-obfuscation parameter ticket_age_add
. For externally provided PSKs this method does not provide any meaningful information.
Definition at line 41 of file tls_psk_identity_13.cpp.
|
inline |
Definition at line 48 of file tls_psk_identity_13.h.
std::string Botan::TLS::PskIdentity::identity_as_string | ( | ) | const |
Definition at line 45 of file tls_psk_identity_13.cpp.
References Botan::to_string().
|
inline |
Definition at line 60 of file tls_psk_identity_13.h.