[#SSL_SESSION_set1_alpn_selected]
= SSL&lowbar;SESSION&lowbar;set1&lowbar;alpn&lowbar;selected
:mrdocs:

Set the ALPN protocol recorded on a session to a copy of `alpn&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;SESSION&lowbar;set1&lowbar;alpn&lowbar;selected(
    xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]* s,
    unsigned char const* alpn,
    size&lowbar;t len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Session to update&period;
| *alpn*
| Protocol name bytes (not necessarily NUL&hyphen;terminated)&period;
| *len*
| Length of `alpn` in bytes&period;
|===


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