1gnutls_certificate_get_issuer(3) gnutls gnutls_certificate_get_issuer(3)
2
3
4
6 gnutls_certificate_get_issuer - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_certificate_get_issuer(gnutls_certificate_credentials_t sc,
12 gnutls_x509_crt_t cert, gnutls_x509_crt_t * issuer, unsigned int
13 flags);
14
16 gnutls_certificate_credentials_t sc
17 is a gnutls_certificate_credentials_t type.
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 Use zero or GNUTLS_TL_GET_COPY
27
29 This function will return the issuer of a given certificate. If the
30 flag GNUTLS_TL_GET_COPY is specified a copy of the issuer will be re‐
31 turned which must be freed using gnutls_x509_crt_deinit(). In that
32 case the provided issuer must not be initialized.
33
34 As with gnutls_x509_trust_list_get_issuer() this function requires the
35 GNUTLS_TL_GET_COPY flag in order to operate with PKCS11 trust lists in
36 a thread-safe way.
37
39 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
40 ror 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-2023 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 no‐
54 tice 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.8.2 gnutls_certificate_get_issuer(3)