1gnutls_psk_set_client_credentials_gfnuungtcnltusit_olpnss(k3_)set_client_credentials_function(3)
2
3
4

NAME

6       gnutls_psk_set_client_credentials_function - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void  gnutls_psk_set_client_credentials_function(gnutls_psk_client_cre‐
12       dentials_t             cred,     gnutls_psk_client_credentials_function
13       * func);
14

ARGUMENTS

16       gnutls_psk_client_credentials_t         cred
17                   is a gnutls_psk_server_credentials_t type.
18
19       gnutls_psk_client_credentials_function         * func
20                   is the callback function
21

DESCRIPTION

23       This  function  can  be used to set a callback to retrieve the username
24       and password for client PSK authentication.   The  callback's  function
25       form    is:    int   (*callback)(gnutls_session_t,   char**   username,
26       gnutls_datum_t* key);
27
28       The  username and  key ->data must be allocated using  gnutls_malloc().
29       The   username  should be an ASCII string or UTF-8 string. In case of a
30       UTF-8 string it is recommended to be following the PRECIS framework for
31       usernames (rfc8265).
32
33       The callback function will be called once per handshake.
34
35       The  callback  function  should  return  0 on success.  -1 indicates an
36       error.
37

REPORTING BUGS

39       Report bugs to <bugs@gnutls.org>.
40       Home page: https://www.gnutls.org
41
42
44       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
45       Copying and distribution of this file, with  or  without  modification,
46       are  permitted  in  any  medium  without royalty provided the copyright
47       notice and this notice are preserved.
48

SEE ALSO

50       The full documentation for gnutls is maintained as  a  Texinfo  manual.
51       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
52       visit
53
54       https://www.gnutls.org/manual/
55
56gnutls                           gnu3t.l6s._1p1sk_set_client_credentials_function(3)
Impressum