Debian Codegraph @

doc/functions/gnutls_srp_set_client_credentials

raw
1
2
3
4
5 @deftypefun {int} {gnutls_srp_set_client_credentials} (gnutls_srp_client_credentials_t @var{res}, const char * @var{username}, const char * @var{password})
6 @var{res}: is a @code{gnutls_srp_client_credentials_t} type.
7
8 @var{username}: is the user's userid
9
10 @var{password}: is the user's password
11
12 This function sets the username and password, in a
13 @code{gnutls_srp_client_credentials_t} type. Those will be used in
14 SRP authentication. @code{username} should be an ASCII string or UTF-8
15 string. In case of a UTF-8 string it is recommended to be following
16 the PRECIS framework for usernames (rfc8265). The password can
17 be in ASCII format, or normalized using @code{gnutls_utf8_password_normalize()} .
18
19 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, or an
20 error code.
21 @end deftypefun