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
40 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
41 value.and a negative value in case of an error.
42
44 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
45 http://www.gnu.org/software/gnutls/ General help using GNU software:
46 http://www.gnu.org/gethelp/
47
49 Copyright © 2008 Free Software Foundation.
50 Copying and distribution of this file, with or without modification,
51 are permitted in any medium without royalty provided the copyright
52 notice and this notice are preserved.
53
55 The full documentation for gnutls is maintained as a Texinfo manual.
56 If the info and gnutls programs are properly installed at your site,
57 the command
58
59 info gnutls
60
61 should give you access to the complete manual.
62
63
64
65gnutls 2.8.6 gnutls_x509_crt_verify(3)