|
Botan
1.11.15
|
#include <tls_messages.h>
Public Member Functions | |
| Next_Protocol (Handshake_IO &io, Handshake_Hash &hash, const std::string &protocol) | |
| Next_Protocol (const std::vector< byte > &buf) | |
| std::string | protocol () const |
| Handshake_Type | type () const override |
Next Protocol Message
Definition at line 539 of file tls_messages.h.
| Botan::TLS::Next_Protocol::Next_Protocol | ( | Handshake_IO & | io, |
| Handshake_Hash & | hash, | ||
| const std::string & | protocol | ||
| ) |
Definition at line 17 of file msg_next_protocol.cpp.
References Botan::TLS::Handshake_IO::send(), and Botan::TLS::Handshake_Hash::update().
: m_protocol(protocol) { hash.update(io.send(*this)); }
| Botan::TLS::Next_Protocol::Next_Protocol | ( | const std::vector< byte > & | buf | ) |
Definition at line 25 of file msg_next_protocol.cpp.
References Botan::TLS::TLS_Data_Reader::get_range_vector(), and Botan::TLS::TLS_Data_Reader::get_string().
{
TLS_Data_Reader reader("NextProtocol", buf);
m_protocol = reader.get_string(1, 0, 255);
reader.get_range_vector<byte>(1, 0, 255); // padding, ignored
}
| std::string Botan::TLS::Next_Protocol::protocol | ( | ) | const [inline] |
Definition at line 544 of file tls_messages.h.
{ return m_protocol; }
| Handshake_Type Botan::TLS::Next_Protocol::type | ( | ) | const [inline, override, virtual] |
Implements Botan::TLS::Handshake_Message.
Definition at line 542 of file tls_messages.h.
References Botan::TLS::NEXT_PROTOCOL.
{ return NEXT_PROTOCOL; }
1.7.6.1