|
Botan 3.14.1
Crypto and TLS for C&
|
#include <tls_flight_13.h>
Public Member Functions | |
| PostHandshakeFlight & | add (const Post_Handshake_Message_13 &msg) & |
| PostHandshakeFlight | add (const Post_Handshake_Message_13 &msg) && |
| std::vector< Message > | commit () |
| PostHandshakeFlight (Callbacks &callbacks) | |
Protected Types | |
| using | Message = std::variant<Dummy_ChangeCipherSpec, Message_Info> |
| enum class | PostHandshake : bool { No = false , Yes = true } |
Protected Member Functions | |
| Flight & | add (Handshake_Message_13_Ref msg) & |
| Flight | add (Handshake_Message_13_Ref msg) && |
| Flight & | add_dummy_change_cipher_spec () & |
| Flight | add_dummy_change_cipher_spec () && |
| void | append (const Handshake_Message &message, PostHandshake post_handshake) |
| void | append_ccs () |
Helper class to coalesce post-handshake messages into a TLS flight.
Definition at line 147 of file tls_flight_13.h.
|
inherited |
Definition at line 48 of file tls_flight_13.h.
|
stronginherited |
| Enumerator | |
|---|---|
| No | |
| Yes | |
Definition at line 50 of file tls_flight_13.h.
|
inlineexplicit |
Definition at line 149 of file tls_flight_13.h.
References Botan::TLS::Flight::Flight().
|
inlineinherited |
Add a msg to this flight, updating the transcript hash associated with this flight and letting the user inspect the message first via the callbacks.
TODO(C++23): deducing-this
| msg | The handshake message to add to the flight |
| Invalid_State | if the flight was already committed |
Definition at line 78 of file tls_flight_13.h.
References append(), Flight(), and No.
Referenced by Botan::TLS::Client_Impl_13::create().
|
inlineinherited |
Add a msg to this flight, updating the transcript hash associated with this flight and letting the user inspect the message first via the callbacks.
TODO(C++23): deducing-this
| msg | The handshake message to add to the flight |
| Invalid_State | if the flight was already committed |
Definition at line 93 of file tls_flight_13.h.
|
inline |
Add a msg to this flight, letting the user inspect the message first via the callbacks. The transcript hash is unchanged for post-handshake messages.
TODO(C++23): deducing-this
| msg | The post-handshake message to add to the flight |
| Invalid_State | if the flight was already committed |
Definition at line 162 of file tls_flight_13.h.
References Botan::TLS::Flight::append(), PostHandshakeFlight(), and Botan::TLS::Flight::Yes.
|
inline |
Add a msg to this flight, letting the user inspect the message first via the callbacks. The transcript hash is unchanged for post-handshake messages.
TODO(C++23): deducing-this
| msg | The post-handshake message to add to the flight |
| Invalid_State | if the flight was already committed |
Definition at line 177 of file tls_flight_13.h.
References Botan::TLS::Flight::append(), PostHandshakeFlight(), and Botan::TLS::Flight::Yes.
|
inlineinherited |
Add a dummy ChangeCipherSpec message to the flight when following the compatibility mode for TLS 1.3. See RFC 9846 E.4 for details.
TODO(C++23): deducing-this
| Invalid_State | if the flight was already committed |
Definition at line 106 of file tls_flight_13.h.
References append_ccs(), and Flight().
|
inlineinherited |
Add a dummy ChangeCipherSpec message to the flight when following the compatibility mode for TLS 1.3. See RFC 9846 E.4 for details.
TODO(C++23): deducing-this
| Invalid_State | if the flight was already committed |
Definition at line 119 of file tls_flight_13.h.
References append_ccs(), and Flight().
|
protectedinherited |
Definition at line 42 of file tls_flight_13.cpp.
References BOTAN_ASSERT_NOMSG, BOTAN_STATE_CHECK, and No.
Referenced by add(), add(), Botan::TLS::PostHandshakeFlight::add(), and Botan::TLS::PostHandshakeFlight::add().
|
protectedinherited |
Definition at line 55 of file tls_flight_13.cpp.
References BOTAN_STATE_CHECK.
Referenced by add_dummy_change_cipher_spec(), and add_dummy_change_cipher_spec().
| std::vector< Flight::Message > Botan::TLS::Flight::commit | ( | ) |
Extract the messages from the flight for sending. This invalidates the flight object and it cannot be used anymore.
| Invalid_State | if the flight was already committed or if it is empty |
Definition at line 131 of file tls_flight_13.cpp.