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* key);
28
29       The username and key must be allocated using gnutls_malloc().  username
30       should be ASCII strings or UTF-8 strings prepared using the  "SASLprep"
31       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>.
40
42       Copyright © 2006 Free Software Foundation.
43       Permission is granted to make and distribute verbatim  copies  of  this
44       manual  provided  the  copyright  notice and this permission notice are
45       preserved on all copies.
46

SEE ALSO

48       The full documentation for gnutls is maintained as  a  Texinfo  manual.
49       If  the  info  and gnutls programs are properly installed at your site,
50       the command
51
52              info gnutls
53
54       should give you access to the complete manual.
55
56
57
58gnutls                           gnut1l.s6_.p3sk_set_client_credentials_function(3)
Impressum