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

NAME

6       gnutls_psk_set_client_credentials_function  - Used to set a callback to
7       retrieve the username and key
8

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

24       This function can be used to set a callback to  retrieve  the  username
25       and  password  for  client PSK authentication.  The callback's function
26       form   is:   int   (*callback)(gnutls_session_t,    char**    username,
27       gnutls_datum_t* key);
28
29       The  username  and  key->data  must be allocated using gnutls_malloc().
30       username should be ASCII strings or UTF-8 strings  prepared  using  the
31       "SASLprep" profile of "stringprep".
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    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
40       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
41       http://www.gnu.org/gethelp/
42
44       Copyright © 2008 Free Software Foundation.
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  info  and gnutls programs are properly installed at your site,
52       the command
53
54              info gnutls
55
56       should give you access to the complete manual.
57
58
59
60gnutls                           gnut2l.s8_.p6sk_set_client_credentials_function(3)
Impressum