|
Botan
1.11.15
|
#include <tls_extensions.h>
Public Member Functions | |
| bool | empty () const |
| Renegotiation_Extension () | |
| Renegotiation_Extension (const std::vector< byte > &bits) | |
| Renegotiation_Extension (TLS_Data_Reader &reader, u16bit extension_size) | |
| const std::vector< byte > & | renegotiation_info () const |
| std::vector< byte > | serialize () const |
| Handshake_Extension_Type | type () const |
Static Public Member Functions | |
| static Handshake_Extension_Type | static_type () |
Renegotiation Indication Extension (RFC 5746)
Definition at line 125 of file tls_extensions.h.
Definition at line 133 of file tls_extensions.h.
{}
| Botan::TLS::Renegotiation_Extension::Renegotiation_Extension | ( | const std::vector< byte > & | bits | ) | [inline] |
Definition at line 135 of file tls_extensions.h.
:
reneg_data(bits) {}
| Botan::TLS::Renegotiation_Extension::Renegotiation_Extension | ( | TLS_Data_Reader & | reader, |
| u16bit | extension_size | ||
| ) |
Definition at line 202 of file tls_extensions.cpp.
References Botan::TLS::TLS_Data_Reader::get_range().
{
reneg_data = reader.get_range<byte>(1, 0, 255);
if(reneg_data.size() + 1 != extension_size)
throw Decoding_Error("Bad encoding for secure renegotiation extn");
}
| bool Botan::TLS::Renegotiation_Extension::empty | ( | ) | const [inline, virtual] |
Implements Botan::TLS::Extension.
Definition at line 146 of file tls_extensions.h.
{ return false; } // always send this
| const std::vector<byte>& Botan::TLS::Renegotiation_Extension::renegotiation_info | ( | ) | const [inline] |
Definition at line 141 of file tls_extensions.h.
{ return reneg_data; }
| std::vector< byte > Botan::TLS::Renegotiation_Extension::serialize | ( | ) | const [virtual] |
Implements Botan::TLS::Extension.
Definition at line 211 of file tls_extensions.cpp.
References Botan::TLS::append_tls_length_value().
{
std::vector<byte> buf;
append_tls_length_value(buf, reneg_data, 1);
return buf;
}
| static Handshake_Extension_Type Botan::TLS::Renegotiation_Extension::static_type | ( | ) | [inline, static] |
Definition at line 128 of file tls_extensions.h.
References Botan::TLS::TLSEXT_SAFE_RENEGOTIATION.
Referenced by type().
{ return TLSEXT_SAFE_RENEGOTIATION; }
| Handshake_Extension_Type Botan::TLS::Renegotiation_Extension::type | ( | ) | const [inline, virtual] |
Implements Botan::TLS::Extension.
Definition at line 131 of file tls_extensions.h.
References static_type().
{ return static_type(); }
1.7.6.1