[#SSL_client_version]
= SSL&lowbar;client&lowbar;version
:mrdocs:

Return the numeric protocol version advertised by the client in ClientHello&period;

== Synopsis

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

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

== Return Value

Legacy ClientHello version (never greater than TLSv1&period;2 for TLS), or OSSL&lowbar;QUIC1&lowbar;VERSION for QUIC&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection to query&period;
|===


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