1gnutls_psk_server_get_username(3) gnutls gnutls_psk_server_get_username(3)
2
3
4
6 gnutls_psk_server_get_username - API function
7
9 #include <gnutls/gnutls.h>
10
11 const char * gnutls_psk_server_get_username(gnutls_session_t session);
12
14 gnutls_session_t session
15 is a gnutls session
16
18 This should only be called in case of PSK authentication and in case of
19 a server.
20
21 The returned pointer should be considered constant (do not free) and
22 valid for the lifetime of the session.
23
24 This function will return NULL if the username has embedded NULL bytes.
25 In that case, gnutls_psk_server_get_username2() should be used to
26 retrieve the username.
27
29 the username of the peer, or NULL in case of an error, or if the user‐
30 name has embedded NULLs.
31
33 Report bugs to <bugs@gnutls.org>.
34 Home page: https://www.gnutls.org
35
36
38 Copyright © 2001-2020 Free Software Foundation, Inc., and others.
39 Copying and distribution of this file, with or without modification,
40 are permitted in any medium without royalty provided the copyright
41 notice and this notice are preserved.
42
44 The full documentation for gnutls is maintained as a Texinfo manual.
45 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
46 visit
47
48 https://www.gnutls.org/manual/
49
50gnutls 3.6.13 gnutls_psk_server_get_username(3)