1gnutls_certificate_server_setg_nruettlrsi_ecvgeenr_utftiulfnsicctaitoen_(s3e)rver_set_retrieve_function(3)
2
3
4
6 gnutls_certificate_server_set_retrieve_function - Used to set a call‐
7 back to retrieve the certificate
8
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
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
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
38 Report bugs to <bug-gnutls@gnu.org>.
39
41 Copyright © 2006 Free Software Foundation.
42 Permission is granted to make and distribute verbatim copies of this
43 manual provided the copyright notice and this permission notice are
44 preserved on all copies.
45
47 The full documentation for gnutls is maintained as a Texinfo manual.
48 If the info and gnutls programs are properly installed at your site,
49 the command
50
51 info gnutls
52
53 should give you access to the complete manual.
54
55
56
57gnutls gnutls_ce1r.t6i.f3icate_server_set_retrieve_function(3)