[#EVP_PKEY_get_attr_count]
= EVP&lowbar;PKEY&lowbar;get&lowbar;attr&lowbar;count
:mrdocs:

Return how many X509&lowbar;ATTRIBUTE entries are attached to a key&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;get&lowbar;attr&lowbar;count(xref:EVP_PKEY.adoc[EVP&lowbar;PKEY] const* key);
----

== Return Value

Attribute count, or 0 if none&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| Key to query&period;
|===


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