PcapPlusPlus
pcpp::SSLServerNameIndicationExtension Class Reference

#include <SSLHandshake.h>

Inheritance diagram for pcpp::SSLServerNameIndicationExtension:
pcpp::SSLExtension

Public Member Functions

 SSLServerNameIndicationExtension (uint8_t *data)
 
std::string getHostName ()
 
- Public Member Functions inherited from pcpp::SSLExtension
 SSLExtension (uint8_t *data)
 
SSLExtensionType getType ()
 
uint16_t getTypeAsInt ()
 
uint16_t getLength ()
 
uint16_t getTotalLength ()
 
uint8_t * getData ()
 

Detailed Description

Represents SSL/TLS Server Name Indication extension. Inherits from SSLExtension and add parsing of the hostname written in the extension data

Constructor & Destructor Documentation

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

C'tor for this class

Parameters
[in]dataThe raw data for the extension

Member Function Documentation

std::string pcpp::SSLServerNameIndicationExtension::getHostName ( )
Returns
The hostname written in the extension data