[#SSL_SESSION_set1_alpn_selected] = SSL_SESSION_set1_alpn_selected :mrdocs: Set the ALPN protocol recorded on a session to a copy of `alpn.` == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SSL_SESSION_set1_alpn_selected( xref:SSL_SESSION.adoc[SSL_SESSION]* s, unsigned char const* alpn, size_t len); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *s* | Session to update. | *alpn* | Protocol name bytes (not necessarily NUL‐terminated). | *len* | Length of `alpn` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#