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

NAME

6       gnutls_certificate_server_set_retrieve_function  -  Used to set a call‐
7       back to retrieve the certificate
8

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

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

REPORTING BUGS

38       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
39       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
40       http://www.gnu.org/gethelp/
41
43       Copyright © 2008 Free Software Foundation.
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 info and gnutls programs are properly installed  at  your  site,
51       the command
52
53              info gnutls
54
55       should give you access to the complete manual.
56
57
58
59gnutls                      gnutls_ce2r.t8i.f6icate_server_set_retrieve_function(3)
Impressum