CMS_signed_add1_attr_by_txt

Append a signed attribute identified by short name to a CMS SignerInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_signed_add1_attr_by_txt(
    CMS_SignerInfo* si,
    char const* attrname,
    int type,
    void const* bytes,
    int len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
siSignerInfo whose signedAttrs set is extended.
attrnameAttribute type name (for example an SN_* string from obj_mac.h).
typeASN.1 string type of bytes (for example V_ASN1_OCTET_STRING).
bytesAttribute value bytes to copy into the new X509_ATTRIBUTE.
lenLength of bytes in octets.