Botan 3.6.1
Crypto and TLS for C&
|
#include <tls_handshake_io.h>
Public Types | |
typedef std::function< void(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 |
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 |
Stream_Handshake_IO (writer_fn writer) | |
bool | timeout_check () override |
Handshake IO for stream-based handshakes
Definition at line 81 of file tls_handshake_io.h.
std::function<void(Record_Type, const std::vector<uint8_t>&)> Botan::TLS::Stream_Handshake_IO::writer_fn |
Definition at line 83 of file tls_handshake_io.h.
|
inlineexplicit |
Definition at line 85 of file tls_handshake_io.h.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 42 of file tls_handshake_io.cpp.
References Botan::TLS::ChangeCipherSpec, Botan::TLS::Handshake, and Botan::TLS::HandshakeCCS.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 84 of file tls_handshake_io.cpp.
References Botan::copy_mem().
Referenced by send().
|
overridevirtual |
Returns (HANDSHAKE_NONE, std::vector<>()) if no message currently available
Implements Botan::TLS::Handshake_IO.
Definition at line 62 of file tls_handshake_io.cpp.
References Botan::make_uint32(), and Botan::TLS::None.
|
inlineoverridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 91 of file tls_handshake_io.h.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 38 of file tls_handshake_io.cpp.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 104 of file tls_handshake_io.cpp.
References Botan::TLS::ChangeCipherSpec, format(), Botan::TLS::Handshake, Botan::TLS::HandshakeCCS, Botan::TLS::Handshake_Message::serialize(), Botan::TLS::Handshake_Message::type(), and Botan::TLS::Handshake_Message::wire_type().
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 100 of file tls_handshake_io.cpp.
|
inlineoverridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 89 of file tls_handshake_io.h.