Append an attribute identified by NID to an EVP_PKEY's attribute set.
Synopsis
Declared in <openssl/x509.h>
int
EVP_PKEY_add1_attr_by_NID(
EVP_PKEY* key,
int nid,
int type,
unsigned char const* bytes,
int len);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
key |
Key whose attributes are extended. |
nid |
Attribute type NID. |
type |
ASN.1 string/type code for |
bytes |
Attribute value bytes interpreted according to |
len |
Length of |
Created with MrDocs