[#SSL_get_client_random]
= SSL&lowbar;get&lowbar;client&lowbar;random
:mrdocs:

Copy the TLS ClientHello random value from a connection&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
size&lowbar;t
SSL&lowbar;get&lowbar;client&lowbar;random(
    xref:SSL.adoc[SSL] const* ssl,
    unsigned char* out,
    size&lowbar;t outlen);
----

== Return Value

Number of bytes available &sol; copied (typically SSL3&lowbar;RANDOM&lowbar;SIZE)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| SSL connection whose client&lowbar;random is requested&period;
| *out*
| Destination buffer, or NULL to query the required length only&period;
| *outlen*
| Capacity of `out` in bytes&period;
|===


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