MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetPeerPublicKey

Method GetPeerPublicKey

src/network/network_crypto.cpp:244–247  ·  view source on GitHub ↗

* Get the public key the peer provided for the key exchange. * @return The hexadecimal string representation of the peer's public key. */

Source from the content-addressed store, hash-verified

242 * @return The hexadecimal string representation of the peer's public key.
243 */
244std::string X25519AuthenticationHandler::GetPeerPublicKey() const
245{
246 return FormatArrayAsHex(this->peer_public_key);
247}
248
249/**
250 * Send the initial nonce for the encrypted connection.

Callers 2

Calls 1

FormatArrayAsHexFunction · 0.85

Tested by

no test coverage detected