s_server: Properly indicate ALPN protocol mismatch
authorTomas Mraz <tmraz@fedoraproject.org>
Thu, 26 Mar 2020 14:59:00 +0000 (15:59 +0100)
committerTomas Mraz <tmraz@fedoraproject.org>
Fri, 27 Mar 2020 16:24:42 +0000 (17:24 +0100)
commit9e885a707d604e9528b5491b78fb9c00f41193fc
treeb796777d87b7d4f42dc7d02d3839c16e7bfd6193
parent9e2c03582de42e8ac5aa23412affcb9645395e94
s_server: Properly indicate ALPN protocol mismatch

Return SSL_TLSEXT_ERR_ALERT_FATAL from alpn_select_cb so that
an alert is sent to the client on ALPN protocol mismatch.

Fixes: #2708
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11415)
apps/s_server.c