[#SSL_get0_alpn_selected]
= SSL&lowbar;get0&lowbar;alpn&lowbar;selected
:mrdocs:

Return the ALPN protocol selected during the handshake&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SSL&lowbar;get0&lowbar;alpn&lowbar;selected(
    xref:SSL.adoc[SSL] const* ssl,
    unsigned char const** data,
    unsigned int* len);
----

== Return Value

the ALPN protocol selected during the handshake&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| SSL connection to query&period;
| *data*
| Receives a pointer to the selected protocol name (not NUL&hyphen;terminated), or NULL if none&period;
| *len*
| Receives the length of the selected protocol in bytes&period;
|===


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