1gnutls_psk_set_server_credentials_filgeng(un3tu)ltsls_psk_set_server_credentials_file(3)
2
3
4

NAME

6       gnutls_psk_set_server_credentials_file - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int    gnutls_psk_set_server_credentials_file(gnutls_psk_server_creden‐
12       tials_t            res, const char * password_file);
13

ARGUMENTS

15       gnutls_psk_server_credentials_t            res
16                   is a gnutls_psk_server_credentials_t type.
17
18       const char * password_file
19                   is the PSK password file (passwd.psk)
20

DESCRIPTION

22       This function sets the password file,  in  a  gnutls_psk_server_creden‐
23       tials_t  type.  This password file holds usernames and keys and will be
24       used for PSK authentication.
25
26       Each entry in the file consists of a  username,  followed  by  a  colon
27       (':')  and  a hex-encoded key.  If the username contains a colon or any
28       other special character, it can be hex-encoded preceded by a
29

RETURNS

31       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an  error  code
32       is returned.
33

REPORTING BUGS

35       Report bugs to <bugs@gnutls.org>.
36       Home page: https://www.gnutls.org
37
38
40       Copyright © 2001- Free Software Foundation, Inc., and others.
41       Copying  and  distribution  of this file, with or without modification,
42       are permitted in any medium without royalty provided the copyright  no‐
43       tice and this notice are preserved.
44

SEE ALSO

46       The  full  documentation  for gnutls is maintained as a Texinfo manual.
47       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
48       visit
49
50       https://www.gnutls.org/manual/
51
52gnutls                               3g.n7u.t8ls_psk_set_server_credentials_file(3)
Impressum