Blame doc/functions/gnutls_pkcs7_get_attr

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@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})
Packit Service 4684c1
@var{list}: A list of existing attributes or @code{NULL}  for the first one
Packit Service 4684c1
Packit Service 4684c1
@var{idx}: the index of the attribute to get
Packit Service 4684c1
Packit Service 4684c1
@var{oid}: the OID of the attribute (read-only)
Packit Service 4684c1
Packit Service 4684c1
@var{data}: the raw data of the attribute
Packit Service 4684c1
Packit Service 4684c1
@var{flags}: zero or @code{GNUTLS_PKCS7_ATTR_ENCODE_OCTET_STRING} 
Packit Service 4684c1
Packit Service 4684c1
This function will get a PKCS @code{7}  attribute from the provided list.
Packit Service 4684c1
The OID is a constant string, but data will be allocated and must be
Packit Service 4684c1
deinitialized by the caller.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit Service 4684c1
negative error value. @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE}  is returned
Packit Service 4684c1
if there are no data in the current index.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 3.4.2
Packit Service 4684c1
@end deftypefun