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 type.
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 <bugs@gnutls.org>.
43       Home page: http://www.gnutls.org
44
45
47       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
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 /usr/share/doc/gnutls/ directory does not contain the HTML form
55       visit
56
57       http://www.gnutls.org/manual/
58
59gnutls                               3g.n6u.t5ls_certificate_set_verify_function(3)
Impressum