1gnutls_psk_set_client_credentials(3)gnutlsgnutls_psk_set_client_credentials(3)
2
3
4
6 gnutls_psk_set_client_credentials - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_psk_set_client_credentials(gnutls_psk_client_credentials_t
12 res, const char * username, const gnutls_datum_t * key,
13 gnutls_psk_key_flags flags);
14
16 gnutls_psk_client_credentials_t res
17 is a gnutls_psk_client_credentials_t structure.
18
19 const char * username
20 is the user's zero-terminated userid
21
22 const gnutls_datum_t * key
23 is the user's key
24
25 gnutls_psk_key_flags flags
26
28 This function sets the username and password, in a
29 gnutls_psk_client_credentials_t structure. Those will be used in PSK
30 authentication. username should be an ASCII string or UTF-8 strings
31 prepared using the "SASLprep" profile of "stringprep". The key can be
32 either in raw byte format or in Hex format (without the 0x prefix).
33
35 GNUTLS_E_SUCCESS on success, or an error code.
36
38 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
39 http://www.gnu.org/software/gnutls/ General help using GNU software:
40 http://www.gnu.org/gethelp/
41
43 Copyright © 2008 Free Software Foundation.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the info and gnutls programs are properly installed at your site,
51 the command
52
53 info gnutls
54
55 should give you access to the complete manual.
56
57
58
59gnutls 2.12.6.1gnutls_psk_set_client_credentials(3)