#ifdef USE_HTTP2
| CURLALTSVC_H2
#endif
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
| CURLALTSVC_H3
#endif
;
/* Define to enable HTTP3 support (experimental, requires NGTCP2, QUICHE or
MSH3) */
-#undef ENABLE_QUIC
+#undef USE_HTTP3
/* Version number of package */
#undef VERSION
#endif
struct transport_provider transport_providers[] = {
{ TRNSPRT_TCP, Curl_cf_tcp_create },
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
{ TRNSPRT_QUIC, Curl_cf_quic_create },
#endif
#ifndef CURL_DISABLE_TFTP
#error "Multi-SSL combined with QUIC is not supported"
#endif
-#define ENABLE_QUIC
#define USE_HTTP3
#endif
&Curl_cft_haproxy,
&Curl_cft_socks_proxy,
#endif /* !CURL_DISABLE_PROXY */
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
&Curl_cft_http3,
#endif
#if !defined(CURL_DISABLE_HTTP) && !defined(USE_HYPER)
#ifdef USE_HTTP2
case 20:
#endif
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
case 30:
#endif
/* TODO: we should verify that responses do not switch major
#ifndef CURL_DISABLE_HTTP
-#if defined(ENABLE_QUIC)
+#if defined(USE_HTTP3)
#include <stdint.h>
#endif
/* accepted */
break;
#endif
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
case CURL_HTTP_VERSION_3:
case CURL_HTTP_VERSION_3ONLY:
/* accepted */
#ifdef USE_HTTP2
| ALPN_h2
#endif
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
| ALPN_h3
#endif
) & data->asi->flags;
#ifdef USE_NGHTTP2
char h2_version[40];
#endif
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
char h3_version[40];
#endif
#ifdef USE_LIBRTMP
Curl_http2_ver(h2_version, sizeof(h2_version));
src[i++] = h2_version;
#endif
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
Curl_quic_ver(h3_version, sizeof(h3_version));
src[i++] = h3_version;
#endif
#if defined(USE_NGHTTP2)
FEATURE("HTTP2", NULL, CURL_VERSION_HTTP2),
#endif
-#if defined(ENABLE_QUIC)
+#if defined(USE_HTTP3)
FEATURE("HTTP3", NULL, CURL_VERSION_HTTP3),
#endif
#if defined(USE_SSL) && !defined(CURL_DISABLE_PROXY) && \
}
#endif
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
{
static char quicbuffer[80];
Curl_quic_ver(quicbuffer, sizeof(quicbuffer));
#include "curl_setup.h"
-#if defined(ENABLE_QUIC) && \
+#if defined(USE_HTTP3) && \
(defined(USE_OPENSSL) || defined(USE_GNUTLS) || defined(USE_WOLFSSL))
#ifdef USE_OPENSSL
}
-#endif /* !ENABLE_QUIC && (USE_OPENSSL || USE_GNUTLS || USE_WOLFSSL) */
+#endif /* !USE_HTTP3 && (USE_OPENSSL || USE_GNUTLS || USE_WOLFSSL) */
#include "bufq.h"
#include "vtls/openssl.h"
-#if defined(ENABLE_QUIC) && \
+#if defined(USE_HTTP3) && \
(defined(USE_OPENSSL) || defined(USE_GNUTLS) || defined(USE_WOLFSSL))
struct curl_tls_ctx {
struct Curl_easy *data,
struct ssl_peer *peer);
-#endif /* !ENABLE_QUIC && (USE_OPENSSL || USE_GNUTLS || USE_WOLFSSL) */
+#endif /* !USE_HTTP3 && (USE_OPENSSL || USE_GNUTLS || USE_WOLFSSL) */
#endif /* HEADER_CURL_VQUIC_TLS_H */
#include "memdebug.h"
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
#ifdef O_BINARY
#define QLOGMODE O_WRONLY|O_CREAT|O_BINARY
return CURLE_OK;
}
-#else /* ENABLE_QUIC */
+#else /* USE_HTTP3 */
CURLcode Curl_conn_may_http3(struct Curl_easy *data,
const struct connectdata *conn)
return CURLE_NOT_BUILT_IN;
}
-#endif /* !ENABLE_QUIC */
+#endif /* !USE_HTTP3 */
#include "curl_setup.h"
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
struct Curl_cfilter;
struct Curl_easy;
struct connectdata;
extern struct Curl_cftype Curl_cft_http3;
-#else /* ENABLE_QUIC */
+#else /* USE_HTTP3 */
#define Curl_conn_is_http3(a,b,c) FALSE
-#endif /* !ENABLE_QUIC */
+#endif /* !USE_HTTP3 */
CURLcode Curl_conn_may_http3(struct Curl_easy *data,
const struct connectdata *conn);
#include "curl_setup.h"
#include "bufq.h"
-#ifdef ENABLE_QUIC
+#ifdef USE_HTTP3
#define MAX_PKT_BURST 10
#define MAX_UDP_PAYLOAD_SIZE 1452
size_t max_pkts,
vquic_recv_pkt_cb *recv_cb, void *userp);
-#endif /* !ENABLE_QUIC */
+#endif /* !USE_HTTP3 */
#endif /* HEADER_CURL_VQUIC_QUIC_INT_H */