Botan  1.11.15
Public Member Functions
Botan::TLS::Next_Protocol Class Reference

#include <tls_messages.h>

Inheritance diagram for Botan::TLS::Next_Protocol:
Botan::TLS::Handshake_Message

List of all members.

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

Detailed Description

Next Protocol Message

Definition at line 539 of file tls_messages.h.


Constructor & Destructor Documentation

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
   }

Member Function Documentation

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; }

The documentation for this class was generated from the following files: