| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {const char *} {gnutls_psk_server_get_username} (gnutls_session_t @var{session}) |
| 6 |
@var{session}: is a gnutls session |
| 7 |
|
| 8 |
This should only be called in case of PSK authentication and in |
| 9 |
case of a server. |
| 10 |
|
| 11 |
The returned pointer should be considered constant (do not free) and valid |
| 12 |
for the lifetime of the session. |
| 13 |
|
| 14 |
This function will return @code{NULL} if the username has embedded NULL bytes. |
| 15 |
In that case, @code{gnutls_psk_server_get_username2()} should be used to retrieve the username. |
| 16 |
|
| 17 |
@strong{Returns:} the username of the peer, or @code{NULL} in case of an error, |
| 18 |
or if the username has embedded NULLs. |
| 19 |
@end deftypefun |