#include <SSLHandshake.h>
A struct that contains all the elements needed for creating a Server Hello TLS fingerprinting: TLS version, Cipher Suite ID, and a list of Extensions IDs. You can read more about this in SSLServerHelloMessage::generateTLSFingerprint(). This struct contains methods to extract the TLS fingerprint itself: toString() and toMD5()
◆ toMD5()
std::string pcpp::SSLServerHelloMessage::ServerHelloTLSFingerprint::toMD5 |
( |
| ) |
|
- Returns
- An MD5 hash of the string generated by toString()
◆ toString()
std::string pcpp::SSLServerHelloMessage::ServerHelloTLSFingerprint::toString |
( |
| ) |
|
- Returns
- A string representing the TLS fingerprint, for example: 771,49195,65281-16-11
This string has the following format: TLSVersion,Cipher,Extensions
The extension ID are separated with a "-"
◆ toStringAndMD5()
std::pair<std::string, std::string> pcpp::SSLServerHelloMessage::ServerHelloTLSFingerprint::toStringAndMD5 |
( |
| ) |
|
- Returns
- A pair of the string and MD5 hash (string is first, MD5 is second). If you want both this method is more efficient than calling toString() and toMD5() separately
◆ cipherSuite
uint16_t pcpp::SSLServerHelloMessage::ServerHelloTLSFingerprint::cipherSuite |
◆ extensions
std::vector<uint16_t> pcpp::SSLServerHelloMessage::ServerHelloTLSFingerprint::extensions |
◆ tlsVersion
uint16_t pcpp::SSLServerHelloMessage::ServerHelloTLSFingerprint::tlsVersion |