nm_iam_state_user_add_fingerprint()

DESCRIPTION

Add the public key fingerprint for user.

The fingerprint can be assigned a name to help identify which client device it belongs to. The name can be NULL. The name length limit reuses the display name max length set by nm_iam_set_display_name_max_length().

Since this is a user builder API, there is no corresponding remove function.

DECLARATION

bool nm_iam_state_user_add_fingerprint(struct nm_iam_user* user, const char* fingerprint, const char* name)

PARAMETERS

user:
[in] the user to set fingerprint on
fingerprint:
[in] hex encoded public key fingerprint
name:
[in] Name for the fingerprint

RETURNS

true iff operation completed successfully