| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_psk_server_get_username2} (gnutls_session_t @var{session}, gnutls_datum_t * @var{username}) |
| 6 |
@var{session}: is a gnutls session |
| 7 |
|
| 8 |
@var{username}: a datum that will be filled in by this function |
| 9 |
|
| 10 |
Return a pointer to the username of the peer in the supplied datum. Does not |
| 11 |
need to be null-terminated. |
| 12 |
|
| 13 |
This should only be called in case of PSK authentication and in |
| 14 |
case of a server. |
| 15 |
|
| 16 |
The returned pointer should be considered constant (do not free) and valid |
| 17 |
for the lifetime of the session. |
| 18 |
|
| 19 |
@strong{Returns:} @code{GNUTLS_E_SUCCESS} , or a negative value in case of an error. |
| 20 |
@end deftypefun |