9#ifndef BOTAN_TLS_FLIGHT_13_H_
10#define BOTAN_TLS_FLIGHT_13_H_
12#include <botan/tls_magic.h>
13#include <botan/tls_messages_13.h>
14#include <botan/internal/tls_types_13.h>
48 using Message = std::variant<Dummy_ChangeCipherSpec, Message_Info>;
53 explicit Flight(
Callbacks& callbacks) : m_callbacks(callbacks) { m_messages.emplace(); }
59 m_transcript_hash(transcript_hash), m_callbacks(callbacks) {
95 return std::move(*
this);
121 return std::move(*
this);
131 std::vector<Message> commit();
138 std::optional<std::reference_wrapper<Transcript_Hash_State>> m_transcript_hash;
141 std::optional<std::vector<Message>> m_messages;
179 return std::move(*
this);
Flight(Callbacks &callbacks)
Flight(Transcript_Hash_State &transcript_hash, Callbacks &callbacks)
Flight & operator=(const Flight &other)=delete
std::variant< Dummy_ChangeCipherSpec, Message_Info > Message
Flight & add(Handshake_Message_13_Ref msg) &
Flight add_dummy_change_cipher_spec() &&
void append(const Handshake_Message &message, PostHandshake post_handshake)
Flight & add_dummy_change_cipher_spec() &
Flight & operator=(Flight &&other)=delete
Flight add(Handshake_Message_13_Ref msg) &&
Flight(const Flight &other)=delete
Flight(Flight &&other)=default
std::vector< Message > commit()
PostHandshakeFlight(Callbacks &callbacks)
PostHandshakeFlight add(const Post_Handshake_Message_13 &msg) &&
PostHandshakeFlight & add(const Post_Handshake_Message_13 &msg) &
detail::as_wrapped_references_t< Handshake_Message_13 > Handshake_Message_13_Ref
Strong< std::array< uint8_t, 4 >, struct HandshakeProtocolHeader_ > HandshakeProtocolHeader
Holds the serialization of a TLS 1.3 handshake protocol header.
Strong< std::vector< uint8_t >, struct SerializedHandshakeMessage_ > SerializedHandshakeMessage
std::variant< New_Session_Ticket_13, Key_Update > Post_Handshake_Message_13
void append(std::vector< T, Alloc > &out, std::type_identity_t< std::span< const T > > in)
SerializedHandshakeMessage serialized
HandshakeProtocolHeader header