[#OSSL_PROVIDER_get_capabilities]
= OSSL&lowbar;PROVIDER&lowbar;get&lowbar;capabilities
:mrdocs:

Query a named provider capability via a callback&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;PROVIDER&lowbar;get&lowbar;capabilities(
    xref:OSSL_PROVIDER.adoc[OSSL&lowbar;PROVIDER] const* prov,
    char const* capability,
    xref:OSSL_CALLBACK.adoc[OSSL&lowbar;CALLBACK]* cb,
    void* arg);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *prov*
| Provider to query&period;
| *capability*
| Capability name (for example &quot;TLS&hyphen;GROUP&quot;)&period;
| *cb*
| Callback invoked for each capability description&period;
| *arg*
| Opaque argument passed to `cb&period;`
|===


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