[#PKCS8_pkey_add1_attr]
= PKCS8&lowbar;pkey&lowbar;add1&lowbar;attr
:mrdocs:

Append a copy of an attribute to a PKCS&num;8 PrivateKeyInfo&period;

== Synopsis

Declared in `&lt;openssl&sol;x509&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS8&lowbar;pkey&lowbar;add1&lowbar;attr(
    xref:PKCS8_PRIV_KEY_INFO.adoc[PKCS8&lowbar;PRIV&lowbar;KEY&lowbar;INFO]* p8,
    xref:X509_ATTRIBUTE.adoc[X509&lowbar;ATTRIBUTE]* attr);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p8*
| PrivateKeyInfo to update&period;
| *attr*
| Attribute to duplicate and append&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
