[#OSSL_ENCODER_CTX_set_output_structure]
= OSSL&lowbar;ENCODER&lowbar;CTX&lowbar;set&lowbar;output&lowbar;structure
:mrdocs:

Set the desired output structure name for the encoder chain (for example &quot;pkcs8&quot;)&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;output&lowbar;structure(
    xref:OSSL_ENCODER_CTX.adoc[OSSL&lowbar;ENCODER&lowbar;CTX]* ctx,
    char const* output&lowbar;structure);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Encoder context to configure&period;
| *output&lowbar;structure*
| Structure name understood by the encoder implementations, or NULL&period;
|===


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