1gnutls_pkcs11_get_raw_issuer_bgyn_ustulbsj_egpcnktuc_tskl1es1y__giedt(_3r)aw_issuer_by_subject_key_id(3)
2
3
4
6 gnutls_pkcs11_get_raw_issuer_by_subject_key_id - API function
7
9 #include <gnutls/pkcs11.h>
10
11 int gnutls_pkcs11_get_raw_issuer_by_subject_key_id(const char * url,
12 const gnutls_datum_t * dn, const gnutls_datum_t * spki, gnutls_datum_t
13 * issuer, gnutls_x509_crt_fmt_t fmt, unsigned int flags);
14
16 const char * url
17 A PKCS 11 url identifying a token
18
19 const gnutls_datum_t * dn
20 is the DN to search for (may be NULL)
21
22 const gnutls_datum_t * spki
23 is the subject key ID to search for
24
25 gnutls_datum_t * issuer
26 Will hold the issuer if any in an allocated buffer.
27
28 gnutls_x509_crt_fmt_t fmt
29 The format of the exported issuer.
30
31 unsigned int flags
32 Use zero or flags from GNUTLS_PKCS11_OBJ_FLAG.
33
35 This function will return the certificate with the given DN and spki ,
36 if it is stored in the token. By default only marked as trusted issuers
37 are returned. If any issuer should be returned specify
38 GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY in flags .
39
40 The name of the function includes issuer because it can be used to dis‐
41 cover issuers of certificates.
42
44 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
45 ror value.
46
48 3.4.2
49
51 Report bugs to <bugs@gnutls.org>.
52 Home page: https://www.gnutls.org
53
54
56 Copyright © 2001- Free Software Foundation, Inc., and others.
57 Copying and distribution of this file, with or without modification,
58 are permitted in any medium without royalty provided the copyright no‐
59 tice and this notice are preserved.
60
62 The full documentation for gnutls is maintained as a Texinfo manual.
63 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
64 visit
65
66 https://www.gnutls.org/manual/
67
68gnutls gnutls_p3k.c7s.121_get_raw_issuer_by_subject_key_id(3)