[#SSL_CTX_use_serverinfo_ex]
= SSL&lowbar;CTX&lowbar;use&lowbar;serverinfo&lowbar;ex
:mrdocs:

Load serverinfo TLS extensions in V1 or V2 format into an SSL context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;use&lowbar;serverinfo&lowbar;ex(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    unsigned int version,
    unsigned char const* serverinfo,
    size&lowbar;t serverinfo&lowbar;length);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose active certificate receives the extensions&period;
| *version*
| SSL&lowbar;SERVERINFOV1 or SSL&lowbar;SERVERINFOV2 describing `serverinfo` layout&period;
| *serverinfo*
| Byte array of one or more serverinfo extensions&period;
| *serverinfo&lowbar;length*
| Length of `serverinfo` in bytes&period;
|===


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