1gnutls_pkcs7_add_attr(3)            gnutls            gnutls_pkcs7_add_attr(3)
2
3
4

NAME

6       gnutls_pkcs7_add_attr - API function
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

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

RETURNS

36       On success, the new list head, otherwise NULL.
37

SINCE

39       3.4.2
40

REPORTING BUGS

42       Report bugs to <bugs@gnutls.org>.
43       Home page: https://www.gnutls.org
44
45
47       Copyright © 2001-2019 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

SEE ALSO

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.8            gnutls_pkcs7_add_attr(3)
Impressum