[#ENGINE_load_public_key]
= ENGINE&lowbar;load&lowbar;public&lowbar;key
:mrdocs:

Load a public key from storage managed by an ENGINE&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]*
ENGINE&lowbar;load&lowbar;public&lowbar;key(
    xref:ENGINE.adoc[ENGINE]* e,
    char const* key&lowbar;id,
    xref:UI_METHOD.adoc[UI&lowbar;METHOD]* ui&lowbar;method,
    void* callback&lowbar;data);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

New EVP&lowbar;PKEY on success, or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *e*
| Functional ENGINE reference that implements key loading&period;
| *key&lowbar;id*
| ENGINE&hyphen;specific identifier of the key to load&period;
| *ui&lowbar;method*
| Optional UI method for PIN&sol;passphrase prompts, or NULL&period;
| *callback&lowbar;data*
| Caller data forwarded to `ui&lowbar;method&period;`
|===


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