Botan
2.1.0
Crypto and TLS for C++11
|
#include <tls_handshake_io.h>
Public Types | |
typedef std::function< void(uint16_t, uint8_t, const std::vector< uint8_t > &)> | writer_fn |
Public Member Functions | |
void | add_record (const std::vector< uint8_t > &record, 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 |
Protocol_Version | initial_record_version () const override |
std::vector< uint8_t > | send (const Handshake_Message &msg) override |
bool | timeout_check () override |
Handshake IO for datagram-based handshakes
Definition at line 96 of file tls_handshake_io.h.
typedef std::function<void (uint16_t, uint8_t, const std::vector<uint8_t>&)> Botan::TLS::Datagram_Handshake_IO::writer_fn |
Definition at line 99 of file tls_handshake_io.h.
|
inline |
Definition at line 101 of file tls_handshake_io.h.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 196 of file tls_handshake_io.cpp.
References Botan::TLS::CHANGE_CIPHER_SPEC, and Botan::load_be< uint16_t >().
|
overridevirtual |
|
overridevirtual |
Returns (HANDSHAKE_NONE, std::vector<>()) if no message currently available
Implements Botan::TLS::Handshake_IO.
Definition at line 250 of file tls_handshake_io.cpp.
References Botan::TLS::HANDSHAKE_CCS, and Botan::TLS::HANDSHAKE_NONE.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 139 of file tls_handshake_io.cpp.
References Botan::TLS::Protocol_Version::DTLS_V10.
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 391 of file tls_handshake_io.cpp.
References Botan::TLS::CHANGE_CIPHER_SPEC, Botan::TLS::Connection_Sequence_Numbers::current_write_epoch(), Botan::TLS::HANDSHAKE_CCS, Botan::TLS::Handshake_Message::serialize(), and Botan::TLS::Handshake_Message::type().
|
overridevirtual |
Implements Botan::TLS::Handshake_IO.
Definition at line 174 of file tls_handshake_io.cpp.
References Botan::CT::min().