mirror of
https://github.com/moparisthebest/curl
synced 2025-01-12 06:28:04 -05:00
parent
f49abd1090
commit
86ae740482
@ -586,10 +586,10 @@ static int quic_init_ssl(struct connectdata *conn)
|
|||||||
SSL_set_key_callback(qs->ssl, ssl_key_cb, conn);
|
SSL_set_key_callback(qs->ssl, ssl_key_cb, conn);
|
||||||
|
|
||||||
switch(qs->version) {
|
switch(qs->version) {
|
||||||
#ifdef NGTCP2_PROTO_VER_D17
|
#ifdef NGTCP2_PROTO_VER
|
||||||
case NGTCP2_PROTO_VER_D17:
|
case NGTCP2_PROTO_VER:
|
||||||
alpn = (const uint8_t *)NGTCP2_ALPN_D17;
|
alpn = (const uint8_t *)NGTCP2_ALPN_H3;
|
||||||
alpnlen = strlen(NGTCP2_ALPN_D17);
|
alpnlen = sizeof(NGTCP2_ALPN_H3) - 1;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -997,6 +997,7 @@ CURLcode Curl_quic_connect(struct connectdata *conn,
|
|||||||
(void)addrlen;
|
(void)addrlen;
|
||||||
infof(conn->data, "Connecting socket %d over QUIC\n", sockfd);
|
infof(conn->data, "Connecting socket %d over QUIC\n", sockfd);
|
||||||
|
|
||||||
|
qs->version = NGTCP2_PROTO_VER;
|
||||||
qs->sslctx = quic_ssl_ctx(conn->data);
|
qs->sslctx = quic_ssl_ctx(conn->data);
|
||||||
if(!qs->sslctx)
|
if(!qs->sslctx)
|
||||||
return CURLE_FAILED_INIT; /* TODO: better return code */
|
return CURLE_FAILED_INIT; /* TODO: better return code */
|
||||||
|
Loading…
Reference in New Issue
Block a user