1gnutls_pkcs11_obj_get_exts(3) gnutls gnutls_pkcs11_obj_get_exts(3)
2
3
4
6 gnutls_pkcs11_obj_get_exts - API function
7
9 #include <gnutls/pkcs11.h>
10
11 int gnutls_pkcs11_obj_get_exts(gnutls_pkcs11_obj_t obj,
12 gnutls_x509_ext_st ** exts, unsigned int * exts_size, unsigned int
13 flags);
14
16 gnutls_pkcs11_obj_t obj
17 should contain a gnutls_pkcs11_obj_t type
18
19 gnutls_x509_ext_st ** exts
20 a pointer to a gnutls_x509_ext_st pointer
21
22 unsigned int * exts_size
23 will be updated with the number of exts
24
25 unsigned int flags
26 Or sequence of GNUTLS_PKCS11_OBJ_* flags
27
29 This function will return information about attached extensions that
30 associate to the provided object (which should be a certificate). The
31 extensions are the attached p11-kit trust module extensions.
32
33 Each element of exts must be deinitialized using
34 gnutls_x509_ext_deinit() while exts should be deallocated using
35 gnutls_free().
36
38 GNUTLS_E_SUCCESS (0) on success or a negative error code on error.
39
41 3.3.8
42
44 Report bugs to <bugs@gnutls.org>.
45 Home page: http://www.gnutls.org
46
47
49 Copyright © 2001-2014 Free Software Foundation, Inc..
50 Copying and distribution of this file, with or without modification,
51 are permitted in any medium without royalty provided the copyright
52 notice and this notice are preserved.
53
55 The full documentation for gnutls is maintained as a Texinfo manual.
56 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
57 visit
58
59 http://www.gnutls.org/manual/
60
61gnutls 3.3.29 gnutls_pkcs11_obj_get_exts(3)