nm_iam_set_user_fingerprint()

DEPRECATED

This function is deprecated and should not be used for new implementations. use nm_iam_add_user_fingerprint()

DESCRIPTION

Set the public key fingerprint for an existing user while the system is running.

DECLARATION

enum nm_iam_error nm_iam_set_user_fingerprint(struct nm_iam* iam, const char* username, const char* fingerprint)

PARAMETERS

iam:
[in] IAM module to manipulate
username:
[in] the username of the user
fingerprint:
[in] hex encoded public key fingerprint

RETURNS

  • NM_IAM_ERROR_INVALID_FINGERPRINT: if the specified fingerprint is invalid.
  • NM_IAM_ERROR_NO_SUCH_USER: if the specified user does not exist.
  • NM_IAM_ERROR_INVALID_ARGUMENT: if the fingerprint length was not 64.
  • NM_IAM_ERROR_OK: if the fingerprint was set successfully for the user.