diff options
author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2019-08-11 10:49:03 +0900 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-08-11 16:47:29 +0200 |
commit | 86ae7404824ed9d79ffc6aa36294684e83ef9c82 (patch) | |
tree | 47eda92630e0448151b3eca81e4fdef2a357f577 /lib/vquic/ngtcp2.c | |
parent | f49abd1090bd530e5f788e5226e7056e9a2ef453 (diff) | |
download | curl-86ae7404824ed9d79ffc6aa36294684e83ef9c82.tar.gz |
ngtcp2: Send ALPN h3-22
Closes #4212
Diffstat (limited to 'lib/vquic/ngtcp2.c')
-rw-r--r-- | lib/vquic/ngtcp2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index e5c624126..c1aa00987 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -586,10 +586,10 @@ static int quic_init_ssl(struct connectdata *conn) SSL_set_key_callback(qs->ssl, ssl_key_cb, conn); switch(qs->version) { -#ifdef NGTCP2_PROTO_VER_D17 - case NGTCP2_PROTO_VER_D17: - alpn = (const uint8_t *)NGTCP2_ALPN_D17; - alpnlen = strlen(NGTCP2_ALPN_D17); +#ifdef NGTCP2_PROTO_VER + case NGTCP2_PROTO_VER: + alpn = (const uint8_t *)NGTCP2_ALPN_H3; + alpnlen = sizeof(NGTCP2_ALPN_H3) - 1; break; #endif } @@ -997,6 +997,7 @@ CURLcode Curl_quic_connect(struct connectdata *conn, (void)addrlen; infof(conn->data, "Connecting socket %d over QUIC\n", sockfd); + qs->version = NGTCP2_PROTO_VER; qs->sslctx = quic_ssl_ctx(conn->data); if(!qs->sslctx) return CURLE_FAILED_INIT; /* TODO: better return code */ |