[#PKCS8_pkey_get0_attrs]
= PKCS8&lowbar;pkey&lowbar;get0&lowbar;attrs
:mrdocs:

Return the attribute stack embedded in a PKCS&num;8 PrivateKeyInfo&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:stack_st_X509_ATTRIBUTE.adoc[stack&lowbar;st&lowbar;X509&lowbar;ATTRIBUTE] const*
PKCS8&lowbar;pkey&lowbar;get0&lowbar;attrs(xref:PKCS8_PRIV_KEY_INFO.adoc[PKCS8&lowbar;PRIV&lowbar;KEY&lowbar;INFO] const* p8);
----

== Return Value

Internal const STACK&lowbar;OF(X509&lowbar;ATTRIBUTE) (do not free), or NULL if none&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p8*
| PKCS&num;8 structure to query&period;
|===


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