Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
curl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
What's new
5
Snippets
Groups
Projects
gitlab-org
build
omnibus-mirror
curl
Commits
86ae7404
Unverified
Commit
86ae7404
authored
5 years ago
by
Tatsuhiro Tsujikawa
Committed by
Daniel Stenberg
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ngtcp2: Send ALPN h3-22
Closes #4212
parent
f49abd10
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/vquic/ngtcp2.c
+5
-4
5 additions, 4 deletions
lib/vquic/ngtcp2.c
with
5 additions
and
4 deletions
lib/vquic/ngtcp2.c
+
5
−
4
View file @
86ae7404
...
...
@@ -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
=
s
trlen
(
NGTCP2_ALPN_
D17
)
;
#ifdef NGTCP2_PROTO_VER
case
NGTCP2_PROTO_VER
:
alpn
=
(
const
uint8_t
*
)
NGTCP2_ALPN_
H3
;
alpnlen
=
s
izeof
(
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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment