1gnutls_session_set_verify_function(3)gnutlsgnutls_session_set_verify_function(3)
2
3
4

NAME

6       gnutls_session_set_verify_function - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void    gnutls_session_set_verify_function(gnutls_session_t    session,
12       gnutls_certificate_verify_function * func);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_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.  This  overrides  any  callback  set  using
25       gnutls_certificate_set_verify_function().
26
27       The  callback's  function  prototype  is:  int  (*callback)(gnutls_ses‐
28       sion_t);
29
30       If the callback function is provided then gnutls will call it,  in  the
31       handshake,  just  after  the certificate message has been received.  To
32       verify  or   obtain   the   certificate   the   gnutls_certificate_ver‐
33       ify_peers2(),       gnutls_certificate_type_get(),      gnutls_certifi‐
34       cate_get_peers() functions can be used.
35
36       The callback function should return 0 for the handshake to continue  or
37       non-zero to terminate.
38

SINCE

40       3.4.6
41

REPORTING BUGS

43       Report bugs to <bugs@gnutls.org>.
44       Home page: https://www.gnutls.org
45
46
48       Copyright © 2001- Free Software Foundation, Inc., and others.
49       Copying  and  distribution  of this file, with or without modification,
50       are permitted in any medium without royalty provided the copyright  no‐
51       tice and this notice are preserved.
52

SEE ALSO

54       The  full  documentation  for gnutls is maintained as a Texinfo manual.
55       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
56       visit
57
58       https://www.gnutls.org/manual/
59
60gnutls                               3.7.2gnutls_session_set_verify_function(3)
Impressum