[#OSSL_STORE_LOADER_set_attach]
= OSSL&lowbar;STORE&lowbar;LOADER&lowbar;set&lowbar;attach
:mrdocs:

Set the attach callback on a deprecated ENGINE&hyphen;based store loader&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
OSSL&lowbar;STORE&lowbar;LOADER&lowbar;set&lowbar;attach(
    xref:OSSL_STORE_LOADER.adoc[OSSL&lowbar;STORE&lowbar;LOADER]* loader,
    xref:OSSL_STORE_attach_fn.adoc[OSSL&lowbar;STORE&lowbar;attach&lowbar;fn] attach&lowbar;function);
----

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

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *loader*
| Loader from OSSL&lowbar;STORE&lowbar;LOADER&lowbar;new()&period;
| *attach&lowbar;function*
| Callback invoked by OSSL&lowbar;STORE&lowbar;attach()&period;
|===


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