EVP_PKEY_add1_attr

Append a copy of attr to an EVP_PKEY attribute list, creating the list if needed.

Synopsis

Declared in <openssl/x509.h>

int
EVP_PKEY_add1_attr(
    EVP_PKEY* key,
    X509_ATTRIBUTE* attr);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
keyKey whose attribute stack is updated.
attrAttribute to copy onto the key; must be non-NULL and not already present.