|
PcapPlusPlus
Next
|
#include <SSLHandshake.h>
Public Member Functions | |
| std::vector< SSLVersion > | getSupportedVersions () const |
| SSLExtension (uint8_t *data) | |
| SSLExtension (uint8_t *data, size_t dataLen) | |
| Constructs an SSLExtension that interprets the provided data as the raw bytes of the extension. More... | |
Public Member Functions inherited from pcpp::SSLExtension | |
| SSLExtension (uint8_t *data) | |
| SSLExtension (uint8_t *data, size_t dataLen) | |
| Constructs an SSLExtension that interprets the provided data as the raw bytes of the extension. More... | |
| SSLExtensionType | getType () const |
| uint16_t | getTypeAsInt () const |
| uint16_t | getLength () const |
| uint16_t | getTotalLength () const |
| uint8_t * | getData () const |
Additional Inherited Members | |
Static Public Member Functions inherited from pcpp::SSLExtension | |
| template<typename T , typename std::enable_if_t< std::is_base_of< SSLExtension, T >::value, bool > = true> | |
| static std::unique_ptr< T > | tryCreateExtension (uint8_t *data, size_t dataLen) |
| A static method that tries to create an instance of a specific extension type. More... | |
Represents TLS Supported Versions extension. Inherits from SSLExtension and adds parsing of the list of supported versions mentioned in the extension data
| std::vector<SSLVersion> pcpp::SSLSupportedVersionsExtension::getSupportedVersions | ( | ) | const |
|
explicit |
C'tor for this class
| [in] | data | The raw data for the extension |
| pcpp::SSLExtension::SSLExtension |
Constructs an SSLExtension that interprets the provided data as the raw bytes of the extension.
The memory span defined by data and dataLen can be larger than the actual extension data. If so, only the bytes corresponding to the extension header (type and length fields) + [length] bytes of extension data will be parsed. The rest of the span will be ignored.
The above behaviour allows variable length extensions to be parsed, as SSL extensions are laid out sequentially in memory on a payload.
| [in] | data | The raw data for the extension. |
| [in] | dataLen | The length of the data in bytes. |
| std::invalid_argument | if data is nullptr or if dataLen is smaller than the size of the extension header (type and length fields). |