PcapPlusPlus  21.05
pcpp::SSLSupportedVersionsExtension Class Reference

#include <SSLHandshake.h>

Inheritance diagram for pcpp::SSLSupportedVersionsExtension:
pcpp::SSLExtension

Public Member Functions

 SSLSupportedVersionsExtension (uint8_t *data)
 
std::vector< SSLVersiongetSupportedVersions () const
 
- Public Member Functions inherited from pcpp::SSLExtension
 SSLExtension (uint8_t *data)
 
SSLExtensionType getType () const
 
uint16_t getTypeAsInt () const
 
uint16_t getLength () const
 
uint16_t getTotalLength () const
 
uint8_t * getData () const
 

Detailed Description

Represents TLS Supported Versions extension. Inherits from SSLExtension and adds parsing of the list of supported versions mentioned in the extension data

Constructor & Destructor Documentation

◆ SSLSupportedVersionsExtension()

pcpp::SSLSupportedVersionsExtension::SSLSupportedVersionsExtension ( uint8_t *  data)
inline

C'tor for this class

Parameters
[in]dataThe raw data for the extension

Member Function Documentation

◆ getSupportedVersions()

std::vector<SSLVersion> pcpp::SSLSupportedVersionsExtension::getSupportedVersions ( ) const
Returns
The list of supported versions mentioned in the extension data