1gnutls_session_set_verify_cert2(3) gnutls gnutls_session_set_verify_cert2(3)
2
3
4
6 gnutls_session_set_verify_cert2 - API function
7
9 #include <gnutls/gnutls.h>
10
11 void gnutls_session_set_verify_cert2(gnutls_session_t session,
12 gnutls_typed_vdata_st * data, unsigned elements, unsigned flags);
13
15 gnutls_session_t session
16 is a gnutls session
17
18 gnutls_typed_vdata_st * data
19 an array of typed data
20
21 unsigned elements
22 the number of data elements
23
24 unsigned flags
25 flags for certificate verification -- gnutls_certifi‐
26 cate_verify_flags
27
29 This function instructs GnuTLS to verify the peer's certificate using
30 the provided typed data information. If the verification fails the
31 handshake will also fail with GNUTLS_E_CERTIFICATE_VERIFICATION_ERROR.
32 In that case the verification result can be obtained using gnutls_ses‐
33 sion_get_verify_cert_status().
34
35 The acceptable typed data are the same as in gnutls_certificate_ver‐
36 ify_peers(), and once set must remain valid for the lifetime of the
37 session. More precisely they should be available during any subsequent
38 handshakes.
39
40 If flags is provided which contain a profile, this function should be
41 called after any session priority setting functions.
42
44 3.4.6
45
47 Report bugs to <bugs@gnutls.org>.
48 Home page: http://www.gnutls.org
49
50
52 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
53 Copying and distribution of this file, with or without modification,
54 are permitted in any medium without royalty provided the copyright
55 notice and this notice are preserved.
56
58 The full documentation for gnutls is maintained as a Texinfo manual.
59 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
60 visit
61
62 http://www.gnutls.org/manual/
63
64gnutls 3.6.5 gnutls_session_set_verify_cert2(3)