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/compat.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.   You  are  advised  to  use
25       gnutls_certificate_set_retrieve_function2()  because  it  is  much more
26       efficient in the processing it requires from gnutls.
27
28       The callback's function prototype is: int (*callback)(gnutls_session_t,
29       gnutls_retr_st* st);
30
31        st should contain the certificates and private keys.
32
33       If  the  callback function is provided then gnutls will call it, in the
34       handshake, after the certificate request message has been received.
35
36       The callback function should set the certificate list to be  sent,  and
37       return  0 on success.  The value (-1) indicates error and the handshake
38       will be terminated.
39

REPORTING BUGS

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

SEE ALSO

52       The full documentation for gnutls is maintained as  a  Texinfo  manual.
53       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
54       visit
55
56       http://www.gnutls.org/manual/
57
58gnutls                      gnutls_c3e.r3t.i2f9icate_server_set_retrieve_function(3)
Impressum