[#SSL_client_hello_get_extension_order]
= SSL&lowbar;client&lowbar;hello&lowbar;get&lowbar;extension&lowbar;order
:mrdocs:

Copy ClientHello extension type values in the order they appeared&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;client&lowbar;hello&lowbar;get&lowbar;extension&lowbar;order(
    xref:SSL.adoc[SSL]* s,
    uint16&lowbar;t* exts,
    size&lowbar;t* num&lowbar;exts);
----

== Return Value

1 on success, or 0 on failure (including when `exts` is too small)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Server SSL connection inside a ClientHello callback (or with a parsed ClientHello)&period;
| *exts*
| Buffer that receives ExtensionType values, or NULL to query the required count only&period;
| *num&lowbar;exts*
| On input, capacity of `exts` when non&hyphen;NULL&semi; on output, the number of extensions&period;
|===


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