blob: 0b7d0be48b183727cc18d5c42b24ad354653de5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
@deftypefun {int} {gnutls_pkcs7_get_attr} (gnutls_pkcs7_attrs_t @var{list}, unsigned @var{idx}, char ** @var{oid}, gnutls_datum_t * @var{data}, unsigned @var{flags})
@var{list}: A list of existing attributes or @code{NULL} for the first one
@var{idx}: the index of the attribute to get
@var{oid}: the OID of the attribute (read-only)
@var{data}: the raw data of the attribute
@var{flags}: zero or @code{GNUTLS_PKCS7_ATTR_ENCODE_OCTET_STRING}
This function will get a PKCS @code{7} attribute from the provided list.
The OID is a constant string, but data will be allocated and must be
deinitialized by the caller.
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
negative error value. @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} is returned
if there are no data in the current index.
@strong{Since:} 3.4.2
@end deftypefun
|