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 structure.
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        username should be ASCII strings or UTF-8 strings prepared  using  the
30       "SASLprep" profile of "stringprep".
31
32       The callback function will be called once per handshake.
33
34       The  callback  function  should  return  0 on success.  -1 indicates an
35       error.
36

REPORTING BUGS

38       Report bugs to <bugs@gnutls.org>.
39       Home page: http://www.gnutls.org
40
41
43       Copyright © 2001-2014 Free Software Foundation, Inc..
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

SEE ALSO

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       http://www.gnutls.org/manual/
54
55gnutls                           gnu3t.l3s._2p9sk_set_client_credentials_function(3)
Impressum