nabto_device_connection_get_device_fingerprint()

DESCRIPTION

Get the device fingerprint used for a particular connection.

If a connection is virtual, this gives the value set by nabto_device_virtual_connection_set_client_fingerprint(). Otherwise, it gives the same value as nabto_device_get_device_fingerprint(). The returned fingerprint must be freed with nabto_device_string_free()

DECLARATION

    NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
        nabto_device_connection_get_device_fingerprint(NabtoDevice* device, NabtoDeviceConnectionRef ref, char** fingerprint)

PARAMETERS

device:
[in] The device
ref:
[in] The connection to get fingerprint from
fingerprint:
[out] Where to put the fingerprint

RETURNS

  • NABTO_DEVICE_EC_OK: on success