[#PKCS12_add1_attr_by_txt] = PKCS12_add1_attr_by_txt :mrdocs: Add a PKCS#12 attribute to a safeBag by name. == Synopsis Declared in `<openssl/pkcs12.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PKCS12_add1_attr_by_txt( xref:PKCS12_SAFEBAG.adoc[PKCS12_SAFEBAG]* bag, char const* attrname, int type, unsigned char const* bytes, int len); ---- == Return Value 1 on success, 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *bag* | SafeBag to modify. | *attrname* | Short name or OID of the attribute type. | *type* | ASN.1 type of the attribute value. | *bytes* | Attribute value octets. | *len* | Length of `bytes.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#