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

Name

Description

si

SignerInfo to update.

md

Digest octets to embed (copied into a new ASN1_OCTET_STRING).

mdlen

Length of md in bytes.

Created with MrDocs