1gnutls_pkcs7_get_attr(3) gnutls gnutls_pkcs7_get_attr(3)
2
3
4
6 gnutls_pkcs7_get_attr - API function
7
9 #include <gnutls/pkcs7.h>
10
11 int gnutls_pkcs7_get_attr(gnutls_pkcs7_attrs_t list, unsigned idx, char
12 ** oid, gnutls_datum_t * data, unsigned flags);
13
15 gnutls_pkcs7_attrs_t list
16 A list of existing attributes or NULL for the first one
17
18 unsigned idx
19 the index of the attribute to get
20
21 char ** oid the OID of the attribute (read-only)
22
23 gnutls_datum_t * data
24 the raw data of the attribute
25
26 unsigned flags
27 zero or GNUTLS_PKCS7_ATTR_ENCODE_OCTET_STRING
28
30 This function will get a PKCS 7 attribute from the provided list. The
31 OID is a constant string, but data will be allocated and must be deini‐
32 tialized by the caller.
33
35 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
36 error value. GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned if there
37 are no data in the current index.
38
40 3.4.2
41
43 Report bugs to <bugs@gnutls.org>.
44 Home page: https://www.gnutls.org
45
46
48 Copyright © 2001-2020 Free Software Foundation, Inc., and others.
49 Copying and distribution of this file, with or without modification,
50 are permitted in any medium without royalty provided the copyright
51 notice and this notice are preserved.
52
54 The full documentation for gnutls is maintained as a Texinfo manual.
55 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
56 visit
57
58 https://www.gnutls.org/manual/
59
60gnutls 3.6.13 gnutls_pkcs7_get_attr(3)