PcapPlusPlus
pcpp::SSLFinishedMessage Class Reference

#include <SSLHandshake.h>

Inheritance diagram for pcpp::SSLFinishedMessage:
pcpp::SSLHandshakeMessage

Public Member Functions

 SSLFinishedMessage (uint8_t *data, size_t dataLen, SSLHandshakeLayer *container)
 
uint8_t * getSignedHash ()
 
size_t getSignedHashLength ()
 
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 finished message (type 20). Inherits from SSLHandshakeMessage and adds parsing functionality such as retrieving signed hash data as raw data (parsing may be added in the future)

Todo:
This message type wasn't tested in unit-tests

Constructor & Destructor Documentation

pcpp::SSLFinishedMessage::SSLFinishedMessage ( 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

uint8_t* pcpp::SSLFinishedMessage::getSignedHash ( )
Returns
A pointer to the signed hash 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 this packet, NULL will be returned
size_t pcpp::SSLFinishedMessage::getSignedHashLength ( )
Returns
The length of signed hash data returned by getSignedHash(). Notice that if the 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 exists in the consequent packets, the length that will be returned will be the length of data exists in the current packet only (and not the total length)
std::string pcpp::SSLFinishedMessage::toString ( )
virtual
Returns
A string representation of the message type (e.g "Client Hello message")

Implements pcpp::SSLHandshakeMessage.