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)
429 :
SSLLayer(data, dataLen, prevLayer, packet)
472 :
SSLLayer(data, dataLen, prevLayer, packet)
502 size_t vecSize = m_MessageList.size();
503 for (
size_t i = 0; i < vecSize; i++)
506 if (
dynamic_cast<THandshakeMessage*
>(curElem) !=
nullptr)
507 return (THandshakeMessage*)curElem;
514 template <
class THandshakeMessage>
517 size_t vecSize = m_MessageList.size();
521 for (afterIndex = 0; afterIndex < vecSize; afterIndex++)
524 if (curElem == after)
529 if (afterIndex == vecSize)
532 for (
size_t i = afterIndex + 1; i < vecSize; i++)
535 if (
dynamic_cast<THandshakeMessage*
>(curElem) !=
nullptr)
536 return (THandshakeMessage*)curElem;
Definition: PointerVector.h:29
Definition: SSLLayer.h:419
SSLAlertLevel getAlertLevel() const
std::string toString() const
SSLAlertDescription getAlertDescription()
void computeCalculateFields()
Definition: SSLLayer.h:452
SSLAlertLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: SSLLayer.h:428
Definition: SSLLayer.h:462
void computeCalculateFields()
Definition: SSLLayer.h:496
uint8_t * getEncryptedData() const
std::string toString() const
size_t getEncryptedDataLen() const
SSLApplicationDataLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: SSLLayer.h:471
Definition: SSLLayer.h:386
void computeCalculateFields()
Definition: SSLLayer.h:409
std::string toString() const
SSLChangeCipherSpecLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: SSLLayer.h:395
Definition: SSLLayer.h:319
SSLHandshakeLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
size_t getHandshakeMessagesCount() const
Definition: SSLLayer.h:333
THandshakeMessage * getHandshakeMessageOfType() const
Definition: SSLLayer.h:500
std::string toString() const
THandshakeMessage * getNextHandshakeMessageOfType(const SSLHandshakeMessage *after) const
Definition: SSLLayer.h:515
void computeCalculateFields()
Definition: SSLLayer.h:373
SSLHandshakeMessage * getHandshakeMessageAt(int index) const
Definition: SSLHandshake.h:339
Definition: SSLLayer.h:175
SSLVersion getRecordVersion() const
OsiModelLayer getOsiModelLayer() const
Definition: SSLLayer.h:259
size_t getHeaderLen() const
static bool isSSLPort(uint16_t port)
Definition: SSLLayer.h:545
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:354
@ OsiModelPresentationLayer
Definition: ProtocolType.h:366
const ProtocolType SSL
Definition: ProtocolType.h:138
SSLRecordType
Definition: SSLCommon.h:94
SSLAlertLevel
Definition: SSLCommon.h:253
Definition: SSLCommon.h:24