PcapPlusPlus  22.11
pcpp::SSLServerNameIndicationExtension Class Reference

#include <SSLHandshake.h>

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

Public Member Functions

 SSLServerNameIndicationExtension (uint8_t *data)
 
std::string getHostName () 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 SSL/TLS Server Name Indication extension. Inherits from SSLExtension and add parsing of the hostname written in the extension data

Constructor & Destructor Documentation

◆ SSLServerNameIndicationExtension()

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

C'tor for this class

Parameters
[in]dataThe raw data for the extension

Member Function Documentation

◆ getHostName()

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