PcapPlusPlus
19.12
|
#include <SSLHandshake.h>
Public Member Functions | |
SSLCertificateMessage (uint8_t *data, size_t dataLen, SSLHandshakeLayer *container) | |
int | getNumOfCertificates () const |
SSLx509Certificate * | getCertificate (int index) const |
std::string | toString () const |
Additional Inherited Members |
Represents SSL/TLS certificate message (type 11). Inherits from SSLHandshakeMessage and adds parsing functionality such as extracting the certificates data. Notice that in most cases this message is spread over more than 1 packet as its size is too big for a single packet. So SSLCertificateMessage instance will be created just for the first part of the message - the one encapsulated in the first packet. Other parts (encapsulated in the following packets) won't be recognized as SSLCertificateMessage messages
pcpp::SSLCertificateMessage::SSLCertificateMessage | ( | uint8_t * | data, |
size_t | dataLen, | ||
SSLHandshakeLayer * | container | ||
) |
C'tor for this class. Currently only in use in SSLHandshakeMessage::createHandhakeMessage() and should be used by a user
[in] | data | The message as raw data |
[in] | dataLen | Message raw data length in bytes |
[in] | container | The SSL handshake layer which shall contain this message |
SSLx509Certificate* pcpp::SSLCertificateMessage::getCertificate | ( | int | index | ) | const |
Get a certificate by index
[in] | index | The index of the certificate to retrieve |
int pcpp::SSLCertificateMessage::getNumOfCertificates | ( | ) | const |
|
virtual |
Implements pcpp::SSLHandshakeMessage.