PcapPlusPlus  23.09
pcpp::SSLNewSessionTicketMessage Class Reference

#include <SSLHandshake.h>

Inheritance diagram for pcpp::SSLNewSessionTicketMessage:
pcpp::SSLHandshakeMessage

Public Member Functions

 SSLNewSessionTicketMessage (uint8_t *data, size_t dataLen, SSLHandshakeLayer *container)
 
uint8_t * getSessionTicketData () const
 
size_t getSessionTicketDataLength () const
 
std::string toString () const
 
- Public Member Functions inherited from pcpp::SSLHandshakeMessage
virtual SSLHandshakeType getHandshakeType () const
 
virtual size_t getMessageLength () const
 
virtual bool isMessageComplete () const
 
SSLHandshakeLayergetContainingLayer () const
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::SSLHandshakeMessage
static SSLHandshakeMessagecreateHandshakeMessage (uint8_t *data, size_t dataLen, SSLHandshakeLayer *container)
 

Detailed Description

Represents SSL/TLS new-session-ticket message (type 4). Inherits from SSLHandshakeMessage and adds parsing functionality such as retrieving session ticket data as raw data (parsing may be added in the future)

Constructor & Destructor Documentation

◆ SSLNewSessionTicketMessage()

pcpp::SSLNewSessionTicketMessage::SSLNewSessionTicketMessage ( uint8_t *  data,
size_t  dataLen,
SSLHandshakeLayer container 
)
inline

C'tor for this class. Currently only in use in SSLHandshakeMessage::createHandshakeMessage() and should be used by a user

Parameters
[in]dataThe message as raw data
[in]dataLenMessage raw data length in bytes
[in]containerThe SSL handshake layer which shall contain this message

Member Function Documentation

◆ getSessionTicketData()

uint8_t* pcpp::SSLNewSessionTicketMessage::getSessionTicketData ( ) const
Returns
A pointer to the session ticket data as raw data (byte array). Parsing of this data may be added in the future. Notice that if this message is spread over several packets in a way none of the signed hash data exists in current packet, NULL will be returned

◆ getSessionTicketDataLength()

size_t pcpp::SSLNewSessionTicketMessage::getSessionTicketDataLength ( ) const
Returns
The length of session ticket data returned by getSessionTicketData(). Notice that if this message is spread over several packets in a way none of this data exists in the current packet, 0 will be returned. Also, if some of the data exist in the consequent packets, the length that will be returned will be the length of the data existing in the current packet only (and not the total length)

◆ toString()

std::string pcpp::SSLNewSessionTicketMessage::toString ( ) const
virtual
Returns
A string representation of the message type (e.g "Client Hello message")

Implements pcpp::SSLHandshakeMessage.