|
Botan
1.11.15
|
#include <tls_extensions.h>
Public Member Functions | |
| bool | empty () const |
| std::string | identifier () const |
| std::vector< byte > | serialize () const |
| SRP_Identifier (const std::string &identifier) | |
| SRP_Identifier (TLS_Data_Reader &reader, u16bit extension_size) | |
| Handshake_Extension_Type | type () const |
Static Public Member Functions | |
| static Handshake_Extension_Type | static_type () |
SRP identifier extension (RFC 5054)
Definition at line 99 of file tls_extensions.h.
| Botan::TLS::SRP_Identifier::SRP_Identifier | ( | const std::string & | identifier | ) | [inline] |
Definition at line 107 of file tls_extensions.h.
:
srp_identifier(identifier) {}
| Botan::TLS::SRP_Identifier::SRP_Identifier | ( | TLS_Data_Reader & | reader, |
| u16bit | extension_size | ||
| ) |
Definition at line 181 of file tls_extensions.cpp.
References Botan::TLS::TLS_Data_Reader::get_string().
{
srp_identifier = reader.get_string(1, 1, 255);
if(srp_identifier.size() + 1 != extension_size)
throw Decoding_Error("Bad encoding for SRP identifier extension");
}
| bool Botan::TLS::SRP_Identifier::empty | ( | ) | const [inline, virtual] |
Implements Botan::TLS::Extension.
Definition at line 117 of file tls_extensions.h.
{ return srp_identifier == ""; }
| std::string Botan::TLS::SRP_Identifier::identifier | ( | ) | const [inline] |
Definition at line 113 of file tls_extensions.h.
{ return srp_identifier; }
| std::vector< byte > Botan::TLS::SRP_Identifier::serialize | ( | ) | const [virtual] |
Implements Botan::TLS::Extension.
Definition at line 190 of file tls_extensions.cpp.
References Botan::TLS::append_tls_length_value().
{
std::vector<byte> buf;
const byte* srp_bytes =
reinterpret_cast<const byte*>(srp_identifier.data());
append_tls_length_value(buf, srp_bytes, srp_identifier.size(), 1);
return buf;
}
| static Handshake_Extension_Type Botan::TLS::SRP_Identifier::static_type | ( | ) | [inline, static] |
Definition at line 102 of file tls_extensions.h.
References Botan::TLS::TLSEXT_SRP_IDENTIFIER.
Referenced by type().
{ return TLSEXT_SRP_IDENTIFIER; }
| Handshake_Extension_Type Botan::TLS::SRP_Identifier::type | ( | ) | const [inline, virtual] |
Implements Botan::TLS::Extension.
Definition at line 105 of file tls_extensions.h.
References static_type().
{ return static_type(); }
1.7.6.1