[#PKCS7_add_signed_attribute] = PKCS7_add_signed_attribute :mrdocs: Add an authenticated (signed) attribute to a PKCS#7 signer info. == Synopsis Declared in `<openssl/pkcs7.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PKCS7_add_signed_attribute( xref:PKCS7_SIGNER_INFO.adoc[PKCS7_SIGNER_INFO]* p7si, int nid, int type, void* data); ---- == Return Value 1 on success, or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *p7si* | Signer info receiving the attribute. | *nid* | Attribute type NID (for example NID_pkcs9_contentType). | *type* | ASN.1 value type tag (V_ASN1_*) for `data.` | *data* | Attribute value pointer interpreted according to `type.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#