PcapPlusPlus  21.05+
pcpp::SSLServerNameIndicationExtension Class Reference

#include <SSLHandshake.h>

Inheritance diagram for pcpp::SSLServerNameIndicationExtension:

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)

C'tor for this class

[in]dataThe raw data for the extension

Member Function Documentation

◆ getHostName()

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