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