PcapPlusPlus
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 ()
 
size_t getSessionTicketDataLength ()
 
std::string toString ()
 
- Public Member Functions inherited from pcpp::SSLHandshakeMessage
virtual SSLHandshakeType getHandshakeType ()
 
virtual size_t getMessageLength ()
 
virtual bool isMessageComplete ()
 
SSLHandshakeLayergetContainingLayer ()
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::SSLHandshakeMessage
static SSLHandshakeMessagecreateHandhakeMessage (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::createHandhakeMessage() 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 ( )
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 ( )
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 ( )
virtual
Returns
A string representation of the message type (e.g "Client Hello message")

Implements pcpp::SSLHandshakeMessage.