nabto_client_connection_get_device_fingerprint()

DESCRIPTION

Get the full fingerprint of the remote device public key. The fingerprint is used to validate the identity of the remote device.

DECLARATION

NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_connection_get_device_fingerprint(NabtoClientConnection* connection, char** fingerprintHex)

PARAMETERS

connection:
[in] The connection.
fingerprint:
[out] The fingerprint encoded as hex, the fingerprint has to be freed using nabto_client_string_free.

RETURN VALUES

NABTO_CLIENT_EC_OK if the fingerprint was copied to the fingerprint parameter. NABTO_CLIENT_EC_INVALID_STATE if the connection is not connected

EXAMPLES

None.