[#SSL_client_hello_get0_ext]
= SSL&lowbar;client&lowbar;hello&lowbar;get0&lowbar;ext
:mrdocs:

Return a pointer to a specific extension&apos;s payload in a parsed ClientHello&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;get0&lowbar;ext(
    xref:SSL.adoc[SSL]* s,
    unsigned int type,
    unsigned char const** out,
    size&lowbar;t* outlen);
----

== Return Value

1 if the extension is present, or 0 otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Server SSL connection inside a ClientHello callback (or with a parsed ClientHello)&period;
| *type*
| TLS extension type to look up&period;
| *out*
| Set to the extension payload bytes (excluding type&sol;length headers)&period;
| *outlen*
| Receives the payload length in bytes&period;
|===


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