[#OSSL_CMP_CTX_get_option]
= OSSL&lowbar;CMP&lowbar;CTX&lowbar;get&lowbar;option
:mrdocs:

Read a CMP context option (OSSL&lowbar;CMP&lowbar;OPT&lowbar;&ast;)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CMP&lowbar;CTX&lowbar;get&lowbar;option(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX] const* ctx,
    int opt);
----

== Return Value

Current option value, or &hyphen;1 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context&period;
| *opt*
| Option identifier&period;
|===


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