1gnutls_srp_set_client_credentials_gfnuungtcnltusit_olsnsr(p3_)set_client_credentials_function(3)
2
3
4

NAME

6       gnutls_srp_set_client_credentials_function - API function
7

SYNOPSIS

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

ARGUMENTS

16       gnutls_srp_client_credentials_t         cred
17                   is a gnutls_srp_server_credentials_t type.
18
19       gnutls_srp_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 SRP authentication.   The  callback's  function
25       form is:
26
27       int (*callback)(gnutls_session_t, char** username, char**password);
28
29       The   username  and   password must be allocated using gnutls_malloc().
30       username and  password should be ASCII strings or  UTF-8  strings  pre‐
31       pared using the "SASLprep" profile of "stringprep".
32
33       The callback function will be called once per handshake before the ini‐
34       tial hello message is sent.
35
36       The callback should not return a negative error code  the  second  time
37       called, since the handshake procedure will be aborted.
38
39       The  callback  function  should  return  0 on success.  -1 indicates an
40       error.
41

REPORTING BUGS

43       Report bugs to <bugs@gnutls.org>.
44       Home page: http://www.gnutls.org
45
46
48       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
49       Copying and distribution of this file, with  or  without  modification,
50       are  permitted  in  any  medium  without royalty provided the copyright
51       notice and this notice are preserved.
52

SEE ALSO

54       The full documentation for gnutls is maintained as  a  Texinfo  manual.
55       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
56       visit
57
58       http://www.gnutls.org/manual/
59
60gnutls                           gnut3l.s6_.s5rp_set_client_credentials_function(3)
Impressum