nabto_device_password_authentication_request_set_password()

DESCRIPTION

Set password for the request. If no password matching the request is found, supply NULL as the password. If NULL is provided, the password authentication protocol continues such that the client does not know if the request failed because of the username or the password being invalid. The password pointer is not used after the call returns.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_password_authentication_request_set_password(NabtoDevicePasswordAuthenticationRequest* request, const char* password)

PARAMETERS

request:
[in] The password authentication request
password:
[in] NULL terminated password string

RETURN VALUES

NABTO_DEVICE_EC_OK iff the password was set NABTO_DEVICE_EC_INVALID_STATE if the function is called multiple times on the same request

EXAMPLES

None.