Debian Codegraph @

doc/functions/gnutls_psk_client_get_hint

raw
1
2
3
4
5 @deftypefun {const char *} {gnutls_psk_client_get_hint} (gnutls_session_t @var{session})
6 @var{session}: is a gnutls session
7
8 The PSK identity hint may give the client help in deciding which
9 username to use. This should only be called in case of PSK
10 authentication and in case of a client.
11
12 @strong{Note:} there is no hint in TLS 1.3, so this function will return @code{NULL}
13 if TLS 1.3 has been negotiated.
14
15 @strong{Returns:} the identity hint of the peer, or @code{NULL} in case of an error or if TLS 1.3 is being used.
16
17 @strong{Since:} 2.4.0
18 @end deftypefun