1gnutls_x509_crt_get_authority_key_id(g3n)utglnsutls_x509_crt_get_authority_key_id(3)
2
3
4
6 gnutls_x509_crt_get_authority_key_id - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_get_authority_key_id(gnutls_x509_crt_t cert, void *
12 id, size_t * id_size, unsigned int * critical);
13
15 gnutls_x509_crt_t cert
16 should contain a gnutls_x509_crt_t type
17
18 void * id The place where the identifier will be copied
19
20 size_t * id_size
21 Holds the size of the id field.
22
23 unsigned int * critical
24 will be non-zero if the extension is marked as critical
25 (may be null)
26
28 This function will return the X.509v3 certificate authority's key iden‐
29 tifier. This is obtained by the X.509 Authority Key identifier exten‐
30 sion field (2.5.29.35). Note that this function only returns the keyI‐
31 dentifier field of the extension and GNUTLS_E_X509_UNSUPPORTED_EXTEN‐
32 SION, if the extension contains the name and serial number of the cer‐
33 tificate. In that case gnutls_x509_crt_get_authority_key_gn_serial()
34 may be used.
35
37 On success, GNUTLS_E_SUCCESS [22m(0) is returned,
38 GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE if the extension is not present,
39 otherwise a negative error value.
40
42 Report bugs to <bugs@gnutls.org>.
43 Home page: https://www.gnutls.org
44
45
47 Copyright © 2001-2020 Free Software Foundation, Inc., and others.
48 Copying and distribution of this file, with or without modification,
49 are permitted in any medium without royalty provided the copyright
50 notice and this notice are preserved.
51
53 The full documentation for gnutls is maintained as a Texinfo manual.
54 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
55 visit
56
57 https://www.gnutls.org/manual/
58
59gnutls 3.6.g1n3utls_x509_crt_get_authority_key_id(3)