[#OSSL_STORE_expect]
= OSSL&lowbar;STORE&lowbar;expect
:mrdocs:

Restrict an open store to a single expected OSSL&lowbar;STORE&lowbar;INFO&lowbar;&ast; type&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;STORE&lowbar;expect(
    xref:OSSL_STORE_CTX.adoc[OSSL&lowbar;STORE&lowbar;CTX]* ctx,
    int expected&lowbar;type);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Open store context&semi; must be called before the first OSSL&lowbar;STORE&lowbar;load()&period;
| *expected&lowbar;type*
| Desired type code, or 0 for unspecified&period;
|===


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