PKCS7_dataVerify

Verify a PKCS#7 signed content digest against a signer info and certificate store.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_dataVerify(
    X509_STORE* cert_store,
    X509_STORE_CTX* ctx,
    BIO* bio,
    PKCS7* p7,
    PKCS7_SIGNER_INFO* si);

Return Value

1 if verification succeeds, or 0 / a negative value on failure.

Parameters

NameDescription
cert_storeTrusted store used to locate and validate the signer certificate.
ctxVerification context reused or initialized for the signer certificate check.
bioBIO supplying the signed content octets (digest input).
p7Signed PKCS#7 structure containing certificates and signer infos.
siSigner info whose signature and digest are verified.