1gnutls_x509_trust_list_get_issuer(3)gnutlsgnutls_x509_trust_list_get_issuer(3)
2
3
4
6 gnutls_x509_trust_list_get_issuer - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_trust_list_get_issuer(gnutls_x509_trust_list_t list,
12 gnutls_x509_crt_t cert, gnutls_x509_crt_t * issuer, unsigned int
13 flags);
14
16 gnutls_x509_trust_list_t list
17 The list
18
19 gnutls_x509_crt_t cert
20 is the certificate to find issuer for
21
22 gnutls_x509_crt_t * issuer
23 Will hold the issuer if any. Should be treated as constant
24 unless GNUTLS_TL_GET_COPY is set in flags .
25
26 unsigned int flags
27 flags from gnutls_trust_list_flags_t (GNUTLS_TL_GET_COPY is
28 applicable)
29
31 This function will find the issuer of the given certificate. If the
32 flag GNUTLS_TL_GET_COPY is specified a copy of the issuer will be re‐
33 turned which must be freed using gnutls_x509_crt_deinit(). In that
34 case the provided issuer must not be initialized.
35
36 Note that the flag GNUTLS_TL_GET_COPY is required for this function to
37 work with PKCS11 trust lists in a thread-safe way.
38
40 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
41 ror value.
42
44 3.0
45
47 Report bugs to <bugs@gnutls.org>.
48 Home page: https://www.gnutls.org
49
50
52 Copyright © 2001- 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 no‐
55 tice 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 https://www.gnutls.org/manual/
63
64gnutls 3.7.8gnutls_x509_trust_list_get_issuer(3)