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.

RETURNS

  • NABTO_CLIENT_EC_OK: if the fingerprint was copied to the fingerprint parameter.
  • NABTO_CLIENT_EC_NOT_CONNECTED: if the connection is not established yet.
  • NABTO_CLIENT_EC_STOPPED: if the connection is closed or stopped.
  • NABTO_CLIENT_EC_NONE: if no fingerprint is available.