Botan 2.19.2
Crypto and TLS for C&
|
#include <tls_handshake_io.h>
Public Types | |
typedef std::function< void(uint8_t, 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 |
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 67 of file tls_handshake_io.h.
typedef std::function<void (uint8_t, const std::vector<uint8_t>&)> Botan::TLS::Stream_Handshake_IO::writer_fn |
Definition at line 70 of file tls_handshake_io.h.
|
inlineexplicit |
Definition at line 72 of file tls_handshake_io.h.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 50 of file tls_handshake_io.cpp.
References Botan::TLS::CHANGE_CIPHER_SPEC, Botan::TLS::HANDSHAKE, Botan::TLS::HANDSHAKE_CCS, and Botan::ASN1::to_string().
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 98 of file tls_handshake_io.cpp.
References Botan::copy_mem(), and type.
Referenced by send().
|
overridevirtual |
Returns (HANDSHAKE_NONE, std::vector<>()) if no message currently available
Implements Botan::TLS::Handshake_IO.
Definition at line 72 of file tls_handshake_io.cpp.
References Botan::TLS::HANDSHAKE_NONE, Botan::make_uint32(), and type.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 45 of file tls_handshake_io.cpp.
References Botan::TLS::Protocol_Version::TLS_V10.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 122 of file tls_handshake_io.cpp.
References Botan::TLS::CHANGE_CIPHER_SPEC, format(), Botan::TLS::HANDSHAKE, Botan::TLS::HANDSHAKE_CCS, Botan::TLS::Handshake_Message::serialize(), and Botan::TLS::Handshake_Message::type().
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 117 of file tls_handshake_io.cpp.
|
inlineoverridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 76 of file tls_handshake_io.h.