[#SSL_client_hello_get0_legacy_version]
= SSL&lowbar;client&lowbar;hello&lowbar;get0&lowbar;legacy&lowbar;version
:mrdocs:

Return the legacy&lowbar;version field from the ClientHello being processed&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned int
SSL&lowbar;client&lowbar;hello&lowbar;get0&lowbar;legacy&lowbar;version(xref:SSL.adoc[SSL]* s);
----

== Return Value

Protocol version from the ClientHello legacy&lowbar;version field, or 0 if unavailable&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Server SSL connection inside a ClientHello callback (or with a parsed ClientHello)&period;
|===


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