Botan 3.6.1
Crypto and TLS for C&
|
#include <tls_handshake_io.h>
Public Types | |
typedef std::function< void(uint16_t, Record_Type, const std::vector< uint8_t > &)> | writer_fn |
Public Member Functions | |
void | add_record (const uint8_t record[], size_t record_len, Record_Type type, uint64_t sequence_number) override |
Datagram_Handshake_IO (writer_fn writer, class Connection_Sequence_Numbers &seq, uint16_t mtu, uint64_t initial_timeout_ms, uint64_t max_timeout_ms) | |
std::vector< uint8_t > | format (const std::vector< uint8_t > &handshake_msg, Handshake_Type handshake_type) const override |
std::pair< Handshake_Type, std::vector< uint8_t > > | get_next_record (bool expecting_ccs) override |
bool | have_more_data () const override |
Protocol_Version | initial_record_version () const override |
std::vector< uint8_t > | send (const Handshake_Message &msg) override |
std::vector< uint8_t > | send_under_epoch (const Handshake_Message &msg, uint16_t epoch) override |
bool | timeout_check () override |
Handshake IO for datagram-based handshakes
Definition at line 112 of file tls_handshake_io.h.
std::function<void(uint16_t, Record_Type, const std::vector<uint8_t>&)> Botan::TLS::Datagram_Handshake_IO::writer_fn |
Definition at line 114 of file tls_handshake_io.h.
|
inline |
Definition at line 116 of file tls_handshake_io.h.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 172 of file tls_handshake_io.cpp.
References Botan::TLS::ChangeCipherSpec, and Botan::load_be().
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 343 of file tls_handshake_io.cpp.
|
overridevirtual |
Returns (HANDSHAKE_NONE, std::vector<>()) if no message currently available
Implements Botan::TLS::Handshake_IO.
Definition at line 219 of file tls_handshake_io.cpp.
References Botan::TLS::HandshakeCCS, and Botan::TLS::None.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 147 of file tls_handshake_io.cpp.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 117 of file tls_handshake_io.cpp.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 347 of file tls_handshake_io.cpp.
References Botan::TLS::Connection_Sequence_Numbers::current_write_epoch(), and send_under_epoch().
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 351 of file tls_handshake_io.cpp.
References Botan::TLS::ChangeCipherSpec, Botan::TLS::HandshakeCCS, Botan::TLS::HelloVerifyRequest, Botan::TLS::Handshake_Message::serialize(), and Botan::TLS::Handshake_Message::type().
Referenced by send().
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 151 of file tls_handshake_io.cpp.