PKCS7_add1_attrib_digest

Add a PKCS#9 messageDigest authenticated attribute to a SignerInfo.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_add1_attrib_digest(
    PKCS7_SIGNER_INFO* si,
    unsigned char const* md,
    int mdlen);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
siSignerInfo to update.
mdDigest octets to embed (copied into a new ASN1_OCTET_STRING).
mdlenLength of md in bytes.