



@deftypefun {int} {gnutls_pkcs7_get_embedded_data} (gnutls_pkcs7_t @var{pkcs7}, unsigned @var{idx}, gnutls_datum_t * @var{data})
@var{pkcs7}: should contain a gnutls_pkcs7_t type

@var{idx}: the index of the signature info to get the data from

@var{data}: will hold the embedded data in the provided structure

This function will return the data embedded in the signature of
the PKCS7 structure. If no data are available then
@code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE}  will be returned.

Note, that since a PKCS@code{7}  structure may contain embedded data
for each attached signature, this function accepts and index which
corresponds to the signature index to get the data from.

@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
negative error value. 

@strong{Since:} 3.4.8
@end deftypefun
