bsslserver: Support QUIC v1
@@ -72,6 +72,10 @@ int alpn_select_proto_h3_cb(SSL *ssl, const unsigned char **out,
alpn = reinterpret_cast<const uint8_t *>(H3_ALPN_DRAFT32);
alpnlen = str_size(H3_ALPN_DRAFT32);
break;
+ case QUIC_VER_V1:
+ alpn = reinterpret_cast<const uint8_t *>(H3_ALPN_V1);
+ alpnlen = str_size(H3_ALPN_V1);
+ break;
default:
if (!config.quiet) {
std::cerr << "Unexpected quic protocol version: " << std::hex << "0x"
@@ -122,6 +126,10 @@ int alpn_select_proto_hq_cb(SSL *ssl, const unsigned char **out,
alpn = reinterpret_cast<const uint8_t *>(HQ_ALPN_DRAFT32);
alpnlen = str_size(HQ_ALPN_DRAFT32);
break;
+ case QUIC_VER_V1:
+ alpn = reinterpret_cast<const uint8_t *>(HQ_ALPN_V1);
+ alpnlen = str_size(HQ_ALPN_V1);
+ break;
default:
if (!config.quiet) {
std::cerr << "Unexpected quic protocol version: " << std::hex << "0x"
