[#OSSL_ENCODER_CTX_set_selection]
= OSSL&lowbar;ENCODER&lowbar;CTX&lowbar;set&lowbar;selection
:mrdocs:

Set the key&sol;component selection mask for encoding (OSSL&lowbar;KEYMGMT&lowbar;SELECT&lowbar;&ast;)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;ENCODER&lowbar;CTX&lowbar;set&lowbar;selection(
    xref:OSSL_ENCODER_CTX.adoc[OSSL&lowbar;ENCODER&lowbar;CTX]* ctx,
    int selection);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Encoder context to configure&period;
| *selection*
| Non&hyphen;zero bit mask of components to encode&period;
|===


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