181 static inline bool isSSLPort(uint16_t port);
210 static bool IsSSLMessage(uint16_t srcPort, uint16_t dstPort, uint8_t* data,
size_t dataLen,
211 bool ignorePorts =
false);
266 :
Layer(data, dataLen, prevLayer, packet,
SSL)
335 return m_MessageList.size();
363 template <
class THandshakeMessage>
396 :
SSLLayer(data, dataLen, prevLayer, packet)
428 :
SSLLayer(data, dataLen, prevLayer, packet)
470 :
SSLLayer(data, dataLen, prevLayer, packet)
499 size_t vecSize = m_MessageList.size();
500 for (
size_t i = 0; i < vecSize; i++)
503 if (
dynamic_cast<THandshakeMessage*
>(curElem) !=
nullptr)
504 return (THandshakeMessage*)curElem;
511 template <
class THandshakeMessage>
514 size_t vecSize = m_MessageList.size();
518 for (afterIndex = 0; afterIndex < vecSize; afterIndex++)
521 if (curElem == after)
526 if (afterIndex == vecSize)
529 for (
size_t i = afterIndex + 1; i < vecSize; i++)
532 if (
dynamic_cast<THandshakeMessage*
>(curElem) !=
nullptr)
533 return (THandshakeMessage*)curElem;
Definition: PointerVector.h:58
Definition: SSLLayer.h:418
void computeCalculateFields() override
Definition: SSLLayer.h:450
SSLAlertLevel getAlertLevel() const
std::string toString() const override
SSLAlertDescription getAlertDescription()
SSLAlertLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: SSLLayer.h:427
Definition: SSLLayer.h:460
uint8_t * getEncryptedData() const
std::string toString() const override
void computeCalculateFields() override
Definition: SSLLayer.h:493
size_t getEncryptedDataLen() const
SSLApplicationDataLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: SSLLayer.h:469
Definition: SSLLayer.h:386
SSLChangeCipherSpecLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: SSLLayer.h:395
std::string toString() const override
void computeCalculateFields() override
Definition: SSLLayer.h:408
Definition: SSLLayer.h:319
SSLHandshakeLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
std::string toString() const override
size_t getHandshakeMessagesCount() const
Definition: SSLLayer.h:333
THandshakeMessage * getHandshakeMessageOfType() const
Definition: SSLLayer.h:497
void computeCalculateFields() override
Definition: SSLLayer.h:373
THandshakeMessage * getNextHandshakeMessageOfType(const SSLHandshakeMessage *after) const
Definition: SSLLayer.h:512
SSLHandshakeMessage * getHandshakeMessageAt(int index) const
Definition: SSLHandshake.h:338
Definition: SSLLayer.h:175
SSLVersion getRecordVersion() const
size_t getHeaderLen() const override
void parseNextLayer() override
OsiModelLayer getOsiModelLayer() const override
Definition: SSLLayer.h:259
static bool isSSLPort(uint16_t port)
Definition: SSLLayer.h:542
static bool IsSSLMessage(uint16_t srcPort, uint16_t dstPort, uint8_t *data, size_t dataLen, bool ignorePorts=false)
static SSLLayer * createSSLMessage(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
ssl_tls_record_layer * getRecordLayer() const
Definition: SSLLayer.h:231
SSLRecordType getRecordType() const
Definition: SSLCommon.h:112
The main namespace for the PcapPlusPlus lib.
SSLAlertDescription
Definition: SSLCommon.h:266
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelPresentationLayer
Definition: ProtocolType.h:376
const ProtocolType SSL
Definition: ProtocolType.h:138
SSLRecordType
Definition: SSLCommon.h:94
SSLAlertLevel
Definition: SSLCommon.h:253
Definition: SSLCommon.h:24