1gnutls_certificate_set_verify_functiognng(un3tu)ltsls_certificate_set_verify_function(3)
2
3
4

NAME

6       gnutls_certificate_set_verify_function - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void  gnutls_certificate_set_verify_function(gnutls_certificate_creden‐
12       tials_t cred, gnutls_certificate_verify_function * func);
13

ARGUMENTS

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

DESCRIPTION

22       This function sets a callback to be called when peer's certificate  has
23       been  received in order to verify it on receipt rather than doing after
24       the handshake is completed.
25
26       The  callback's  function  prototype  is:  int  (*callback)(gnutls_ses‐
27       sion_t);
28
29       If  the  callback function is provided then gnutls will call it, in the
30       handshake, just after the certificate message has  been  received.   To
31       verify   or   obtain   the   certificate   the  gnutls_certificate_ver‐
32       ify_peers2(),      gnutls_certificate_type_get(),       gnutls_certifi‐
33       cate_get_peers() functions can be used.
34
35       The  callback function should return 0 for the handshake to continue or
36       non-zero to terminate.
37

SINCE

39       2.10.0
40

REPORTING BUGS

42       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
43       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
44       http://www.gnu.org/gethelp/
45
47       Copyright © 2008 Free Software Foundation.
48       Copying and distribution of this file, with  or  without  modification,
49       are  permitted  in  any  medium  without royalty provided the copyright
50       notice and this notice are preserved.
51

SEE ALSO

53       The full documentation for gnutls is maintained as  a  Texinfo  manual.
54       If  the  info  and gnutls programs are properly installed at your site,
55       the command
56
57              info gnutls
58
59       should give you access to the complete manual.
60
61
62
63gnutls                             2.1g2n.u6t.l1s_certificate_set_verify_function(3)
Impressum