PcapPlusPlus
21.11
|
#include <SSHLayer.h>
Additional Inherited Members | |
Static Public Member Functions inherited from pcpp::SSHLayer | |
static SSHLayer * | createSSHMessage (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
static bool | isSSHPort (uint16_t portSrc, uint16_t portDst) |
A class representing the SSH Key Exchange Init message. This is a non-encrypted message that contains information about the algorithms used for key exchange, encryption, MAC and compression. This class provides methods to access these details
pcpp::SSHKeyExchangeInitMessage::SSHKeyExchangeInitMessage | ( | uint8_t * | data, |
size_t | dataLen, | ||
Layer * | prevLayer, | ||
Packet * | packet | ||
) |
A c'tor for this class that accepts raw message data. Please avoid using it as it's used internally when parsing SSH handshake messages in SSHHandshakeMessage::tryParse()
[in] | data | A pointer to the raw data |
[in] | dataLen | Size of the data in bytes |
[in] | prevLayer | A pointer to the previous layer |
[in] | packet | A pointer to the Packet instance where layer will be stored in |
|
inline |
|
inline |
uint8_t* pcpp::SSHKeyExchangeInitMessage::getCookie | ( | ) |
Each SSH Key Exchange Init message contains a random 16-byte value generated by the sender. This method returns a pointer to this 16-byte cookie. To get the value as a hex string please refer to getCookieAsHexStream()
std::string pcpp::SSHKeyExchangeInitMessage::getCookieAsHexStream | ( | ) |
Each SSH Key Exchange Init message contains a random 16-byte value generated by the sender. This method returns the 16-byte cookie as a hex stream. To get the raw data please refer to getCookie()
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool pcpp::SSHKeyExchangeInitMessage::isFirstKexPacketFollows | ( | ) |