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

Name

Description

p8

PrivateKeyInfo to update.

attr

Attribute to duplicate and append.

Created with MrDocs