1gnutls_x509_crt_verify(3) gnutls gnutls_x509_crt_verify(3)
2
3
4
6 gnutls_x509_crt_verify - This function verifies the given certificate
7 against a given trusted one
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_crt_verify(gnutls_x509_crt_t cert, const
13 gnutls_x509_crt_t * CA_list, int CA_list_length, unsigned int flags,
14 unsigned int * verify);
15
17 gnutls_x509_crt_t cert
18 is the certificate to be verified
19
20 const gnutls_x509_crt_t * CA_list
21 is one certificate that is considered to be trusted one
22
23 int CA_list_length
24 holds the number of CA certificate in CA_list
25
26 unsigned int flags
27 Flags that may be used to change the verification algo‐
28 rithm. Use OR of the gnutls_certificate_verify_flags enu‐
29 merations.
30
31 unsigned int * verify
32 will hold the certificate verification output.
33
35 This function will try to verify the given certificate and return its
36 status. The verification output in this functions cannot be
37 GNUTLS_CERT_NOT_VALID.
38
39 Returns 0 on success and a negative value in case of an error.
40
42 Report bugs to <bug-gnutls@gnu.org>.
43
45 Copyright © 2006 Free Software Foundation.
46 Permission is granted to make and distribute verbatim copies of this
47 manual provided the copyright notice and this permission notice are
48 preserved on all copies.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the info and gnutls programs are properly installed at your site,
53 the command
54
55 info gnutls
56
57 should give you access to the complete manual.
58
59
60
61gnutls 1.6.3 gnutls_x509_crt_verify(3)