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
25 unsigned int flags
26 flags from gnutls_trust_list_flags_t (GNUTLS_TL_GET_COPY is
27 applicable)
28
30 This function will find the issuer of the given certificate. If the
31 flag GNUTLS_TL_GET_COPY is specified a copy of the issuer will be
32 returned which must be freed using gnutls_x509_crt_deinit(). In that
33 case the provided issuer must not be initialized.
34
35 Note that the flag GNUTLS_TL_GET_COPY is required for this function to
36 work with PKCS11 trust lists in a thread-safe way.
37
39 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
40 error value.
41
43 3.0
44
46 Report bugs to <bugs@gnutls.org>.
47 Home page: https://www.gnutls.org
48
49
51 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
52 Copying and distribution of this file, with or without modification,
53 are permitted in any medium without royalty provided the copyright
54 notice and this notice are preserved.
55
57 The full documentation for gnutls is maintained as a Texinfo manual.
58 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
59 visit
60
61 https://www.gnutls.org/manual/
62
63gnutls 3.6.11gnutls_x509_trust_list_get_issuer(3)