1gnutls_x509_crt_list_verify(3) gnutls gnutls_x509_crt_list_verify(3)
2
3
4
6 gnutls_x509_crt_list_verify - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_list_verify(const gnutls_x509_crt_t * cert_list,
12 unsigned cert_list_length, const gnutls_x509_crt_t * CA_list, unsigned
13 CA_list_length, const gnutls_x509_crl_t * CRL_list, unsigned
14 CRL_list_length, unsigned int flags, unsigned int * verify);
15
17 const gnutls_x509_crt_t * cert_list
18 is the certificate list to be verified
19
20 unsigned cert_list_length
21 holds the number of certificate in cert_list
22
23 const gnutls_x509_crt_t * CA_list
24 is the CA list which will be used in verification
25
26 unsigned CA_list_length
27 holds the number of CA certificate in CA_list
28
29 const gnutls_x509_crl_t * CRL_list
30 holds a list of CRLs.
31
32 unsigned CRL_list_length
33 the length of CRL list.
34
35 unsigned int flags
36 Flags that may be used to change the verification algo‐
37 rithm. Use OR of the gnutls_certificate_verify_flags enu‐
38 merations.
39
40 unsigned int * verify
41 will hold the certificate verification output.
42
44 This function will try to verify the given certificate list and return
45 its status. The details of the verification are the same as in
46 gnutls_x509_trust_list_verify_crt2().
47
48 You must check the peer's name in order to check if the verified cer‐
49 tificate belongs to the actual peer.
50
51 The certificate verification output will be put in verify and will be
52 one or more of the gnutls_certificate_status_t enumerated elements bit‐
53 wise or'd. For a more detailed verification status use
54 gnutls_x509_crt_verify() per list element.
55
57 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
58 ror value.
59
61 Report bugs to <bugs@gnutls.org>.
62 Home page: https://www.gnutls.org
63
64
66 Copyright © 2001-2023 Free Software Foundation, Inc., and others.
67 Copying and distribution of this file, with or without modification,
68 are permitted in any medium without royalty provided the copyright no‐
69 tice and this notice are preserved.
70
72 The full documentation for gnutls is maintained as a Texinfo manual.
73 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
74 visit
75
76 https://www.gnutls.org/manual/
77
78gnutls 3.8.2 gnutls_x509_crt_list_verify(3)