ALPN is required for a successful QUIC connection, so do not allow the
-quic option for s_client without -alpn
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20580)
BIO_printf(bio_err, "%s: QUIC does not support the -tfo option\n", prog);
goto end;
}
+ if (isquic && alpn_in == NULL) {
+ BIO_printf(bio_err, "%s: QUIC requires ALPN to be specified (e.g. \"h3\" for HTTP/3) via the -alpn option\n", prog);
+ goto end;
+ }
#endif
if (tfo)