1gnutls_certificate_server_setg_nruettlrsi_ecvgeenr_utftiulfnsicctaitoen_(s3e)rver_set_retrieve_function(3)
2
3
4

NAME

6       gnutls_certificate_server_set_retrieve_function - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void    gnutls_certificate_server_set_retrieve_function(gnutls_certifi‐
12       cate_credentials_t cred, gnutls_certificate_server_retrieve_function  *
13       func);
14

ARGUMENTS

16       gnutls_certificate_credentials_t cred
17                   is a gnutls_certificate_credentials_t structure.
18
19       gnutls_certificate_server_retrieve_function * func
20                   is the callback function
21

DESCRIPTION

23       This  function  sets  a  callback to be called in order to retrieve the
24       certificate to be used in the handshake.
25
26       The callback's function prototype is: int (*callback)(gnutls_session_t,
27       gnutls_retr_st* st);
28
29       st should contain the certificates and private keys.
30
31       If  the  callback function is provided then gnutls will call it, in the
32       handshake, after the certificate request message has been received.
33
34       The callback function should set the certificate list to be  sent,  and
35       return  0 on success.  The value (-1) indicates error and the handshake
36       will be terminated.
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                      gnutls_2c.e1r2t.i6f.i1cate_server_set_retrieve_function(3)
Impressum