PKCS8_pkey_add1_attr

Append a copy of an attribute to a PKCS#8 PrivateKeyInfo.

Synopsis

Declared in <openssl/x509.h>

int
PKCS8_pkey_add1_attr(
    PKCS8_PRIV_KEY_INFO* p8,
    X509_ATTRIBUTE* attr);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
p8PrivateKeyInfo to update.
attrAttribute to duplicate and append.