[#OSSL_ENCODER_CTX_set_construct]
= OSSL&lowbar;ENCODER&lowbar;CTX&lowbar;set&lowbar;construct
:mrdocs:

Register the constructor that builds the provider&hyphen;side object to encode&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;construct(
    xref:OSSL_ENCODER_CTX.adoc[OSSL&lowbar;ENCODER&lowbar;CTX]* ctx,
    xref:OSSL_ENCODER_CONSTRUCT.adoc[OSSL&lowbar;ENCODER&lowbar;CONSTRUCT]* construct);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Encoder context to configure&period;
| *construct*
| Callback returning a provider&hyphen;native object, or NULL to clear&period;
|===


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