Blame doc/functions/gnutls_pkcs7_verify

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_pkcs7_verify} (gnutls_pkcs7_t @var{pkcs7}, gnutls_x509_trust_list_t @var{tl}, gnutls_typed_vdata_st * @var{vdata}, unsigned int @var{vdata_size}, unsigned @var{idx}, const gnutls_datum_t * @var{data}, unsigned @var{flags})
Packit Service 4684c1
@var{pkcs7}: should contain a @code{gnutls_pkcs7_t}  type
Packit Service 4684c1
Packit Service 4684c1
@var{tl}: A list of trusted certificates
Packit Service 4684c1
Packit Service 4684c1
@var{vdata}: an array of typed data
Packit Service 4684c1
Packit Service 4684c1
@var{vdata_size}: the number of data elements
Packit Service 4684c1
Packit Service 4684c1
@var{idx}: the index of the signature info to check
Packit Service 4684c1
Packit Service 4684c1
@var{data}: The data to be verified or @code{NULL} 
Packit Service 4684c1
Packit Service 4684c1
@var{flags}: Zero or an OR list of @code{gnutls_certificate_verify_flags} 
Packit Service 4684c1
Packit Service 4684c1
This function will verify the provided data against the signature
Packit Service 4684c1
present in the SignedData of the PKCS @code{7}  structure. If the data
Packit Service 4684c1
provided are NULL then the data in the encapsulatedContent field
Packit Service 4684c1
will be used instead.
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. A verification error results to a
Packit Service 4684c1
@code{GNUTLS_E_PK_SIG_VERIFY_FAILED}  and the lack of encapsulated data
Packit Service 4684c1
to verify to a @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} .
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 3.4.2
Packit Service 4684c1
@end deftypefun