CMS_signed_add1_attr_by_NID

Append a signed attribute identified by NID to a CMS SignerInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_signed_add1_attr_by_NID(
    CMS_SignerInfo* si,
    int nid,
    int type,
    void const* bytes,
    int len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
siSignerInfo whose signedAttrs set is extended.
nidAttribute type NID (for example NID_pkcs9_signingTime).
typeASN.1 string/type code for bytes (for example V_ASN1_OCTET_STRING).
bytesAttribute value bytes interpreted according to type.
lenLength of bytes in bytes.