1gnutls_psk_set_client_credentials2(3)gnutlsgnutls_psk_set_client_credentials2(3)
2
3
4
6 gnutls_psk_set_client_credentials2 - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_psk_set_client_credentials2(gnutls_psk_client_credentials_t
12 res, const gnutls_datum_t * 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 type.
18
19 const gnutls_datum_t * username
20 is the userid
21
22 const gnutls_datum_t * key
23 is the user's key
24
25 gnutls_psk_key_flags flags
26 indicate the format of the key, either GNUTLS_PSK_KEY_RAW
27 or GNUTLS_PSK_KEY_HEX.
28
30 This function is identical to gnutls_psk_set_client_credentials(),
31 except that it allows a non-null-terminated username to be introduced.
32
34 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an error code
35 is returned.
36
38 Report bugs to <bugs@gnutls.org>.
39 Home page: https://www.gnutls.org
40
41
43 Copyright © 2001-2020 Free Software Foundation, Inc., and others.
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 /usr/share/doc/gnutls/ directory does not contain the HTML form
51 visit
52
53 https://www.gnutls.org/manual/
54
55gnutls 3.6.13gnutls_psk_set_client_credentials2(3)