[#EVP_PKEY_add1_attr_by_NID] = EVP_PKEY_add1_attr_by_NID :mrdocs: Append an attribute identified by NID to an EVP_PKEY's attribute set. == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_add1_attr_by_NID( xref:EVP_PKEY.adoc[EVP_PKEY]* key, int nid, int type, unsigned char const* bytes, int len); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *key* | Key whose attributes are extended. | *nid* | Attribute type NID. | *type* | ASN.1 string/type code for `bytes` (for example V_ASN1_UTF8STRING). | *bytes* | Attribute value bytes interpreted according to `type.` | *len* | Length of `bytes` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#