1gnutls_pkcs7_add_attr(3) gnutls gnutls_pkcs7_add_attr(3)
2
3
4
6 gnutls_pkcs7_add_attr - API function
7
9 #include <gnutls/pkcs7.h>
10
11 int gnutls_pkcs7_add_attr(gnutls_pkcs7_attrs_t * list, const char *
12 oid, gnutls_datum_t * data, unsigned flags);
13
15 gnutls_pkcs7_attrs_t * list
16 A list of existing attributes or pointer to NULL for the
17 first one
18
19 const char * oid
20 the OID of the attribute to be set
21
22 gnutls_datum_t * data
23 the raw (DER-encoded) data of the attribute to be set
24
25 unsigned flags
26 zero or GNUTLS_PKCS7_ATTR_ENCODE_OCTET_STRING
27
29 This function will set a PKCS 7 attribute in the provided list. If
30 this function fails, the previous list would be deallocated.
31
32 Note that any attributes set with this function must either be DER or
33 BER encoded, unless a special flag is present.
34
36 On success, the new list head, otherwise NULL.
37
39 3.4.2
40
42 Report bugs to <bugs@gnutls.org>.
43 Home page: http://www.gnutls.org
44
45
47 Copyright © 2001-2018 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 http://www.gnutls.org/manual/
58
59gnutls 3.6.5 gnutls_pkcs7_add_attr(3)