|
PcapPlusPlus
|
#include <SSLHandshake.h>
Public Member Functions | |
| SSLCertificateMessage (uint8_t *data, size_t dataLen, SSLHandshakeLayer *container) | |
| int | getNumOfCertificates () |
| SSLx509Certificate * | getCertificate (int index) |
| std::string | toString () |
Public Member Functions inherited from pcpp::SSLHandshakeMessage | |
| virtual SSLHandshakeType | getHandshakeType () |
| virtual size_t | getMessageLength () |
| virtual bool | isMessageComplete () |
| SSLHandshakeLayer * | getContainingLayer () |
Additional Inherited Members | |
Static Public Member Functions inherited from pcpp::SSLHandshakeMessage | |
| static SSLHandshakeMessage * | createHandhakeMessage (uint8_t *data, size_t dataLen, SSLHandshakeLayer *container) |
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 | ) |
Get a certificate by index
| [in] | index | The index of the certificate to retrieve |
| int pcpp::SSLCertificateMessage::getNumOfCertificates | ( | ) |
|
virtual |
Implements pcpp::SSLHandshakeMessage.