|
Botan
1.11.15
|
#include <tls_extensions.h>
Public Member Functions | |
| bool | empty () const |
| const std::vector< u16bit > & | profiles () const |
| std::vector< byte > | serialize () const |
| SRTP_Protection_Profiles (const std::vector< u16bit > &pp) | |
| SRTP_Protection_Profiles (u16bit pp) | |
| SRTP_Protection_Profiles (TLS_Data_Reader &reader, u16bit extension_size) | |
| Handshake_Extension_Type | type () const |
Static Public Member Functions | |
| static Handshake_Extension_Type | static_type () |
Used to indicate SRTP algorithms for DTLS (RFC 5764)
Definition at line 359 of file tls_extensions.h.
| Botan::TLS::SRTP_Protection_Profiles::SRTP_Protection_Profiles | ( | const std::vector< u16bit > & | pp | ) | [inline] |
Definition at line 373 of file tls_extensions.h.
: m_pp(pp) {}
Definition at line 375 of file tls_extensions.h.
: m_pp(1, pp) {}
| Botan::TLS::SRTP_Protection_Profiles::SRTP_Protection_Profiles | ( | TLS_Data_Reader & | reader, |
| u16bit | extension_size | ||
| ) |
Definition at line 547 of file tls_extensions.cpp.
References Botan::TLS::TLS_Data_Reader::get_range().
{
m_pp = reader.get_range<u16bit>(2, 0, 65535);
const std::vector<byte> mki = reader.get_range<byte>(1, 0, 255);
if(m_pp.size() * 2 + mki.size() + 3 != extension_size)
throw Decoding_Error("Bad encoding for SRTP protection extension");
if(!mki.empty())
throw Decoding_Error("Unhandled non-empty MKI for SRTP protection extension");
}
| bool Botan::TLS::SRTP_Protection_Profiles::empty | ( | ) | const [inline, virtual] |
Implements Botan::TLS::Extension.
Definition at line 371 of file tls_extensions.h.
{ return m_pp.empty(); }
| const std::vector<u16bit>& Botan::TLS::SRTP_Protection_Profiles::profiles | ( | ) | const [inline] |
Definition at line 367 of file tls_extensions.h.
{ return m_pp; }
| std::vector< byte > Botan::TLS::SRTP_Protection_Profiles::serialize | ( | ) | const [virtual] |
Implements Botan::TLS::Extension.
Definition at line 561 of file tls_extensions.cpp.
References Botan::get_byte().
| static Handshake_Extension_Type Botan::TLS::SRTP_Protection_Profiles::static_type | ( | ) | [inline, static] |
Definition at line 362 of file tls_extensions.h.
References Botan::TLS::TLSEXT_USE_SRTP.
Referenced by type().
{ return TLSEXT_USE_SRTP; }
| Handshake_Extension_Type Botan::TLS::SRTP_Protection_Profiles::type | ( | ) | const [inline, virtual] |
Implements Botan::TLS::Extension.
Definition at line 365 of file tls_extensions.h.
References static_type().
{ return static_type(); }
1.7.6.1