Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
1c7a4ecc
Commit
1c7a4ecc
authored
Sep 21, 2021
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Rename generate_encrypted_quic_connection_id to generate_quic_connection_id
parent
80cc623e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
src/shrpx_http3_upstream.cc
src/shrpx_http3_upstream.cc
+2
-2
src/shrpx_quic.cc
src/shrpx_quic.cc
+2
-3
src/shrpx_quic.h
src/shrpx_quic.h
+2
-3
No files found.
src/shrpx_http3_upstream.cc
View file @
1c7a4ecc
...
...
@@ -221,7 +221,7 @@ int get_new_connection_id(ngtcp2_conn *conn, ngtcp2_cid *cid, uint8_t *token,
auto
config
=
get_config
();
auto
&
quicconf
=
config
->
quic
;
if
(
generate_
encrypted_
quic_connection_id
(
if
(
generate_quic_connection_id
(
*
cid
,
cidlen
,
worker
->
get_cid_prefix
(),
quicconf
.
upstream
.
cid_encryption_key
.
data
())
!=
0
)
{
return
NGTCP2_ERR_CALLBACK_FAILURE
;
...
...
@@ -559,7 +559,7 @@ int Http3Upstream::init(const UpstreamAddr *faddr, const Address &remote_addr,
ngtcp2_cid
scid
;
if
(
generate_
encrypted_
quic_connection_id
(
if
(
generate_quic_connection_id
(
scid
,
SHRPX_QUIC_SCIDLEN
,
worker
->
get_cid_prefix
(),
quicconf
.
upstream
.
cid_encryption_key
.
data
())
!=
0
)
{
return
-
1
;
...
...
src/shrpx_quic.cc
View file @
1c7a4ecc
...
...
@@ -161,9 +161,8 @@ int generate_quic_retry_connection_id(ngtcp2_cid &cid, size_t cidlen,
return
encrypt_quic_connection_id
(
p
,
p
,
key
);
}
int
generate_encrypted_quic_connection_id
(
ngtcp2_cid
&
cid
,
size_t
cidlen
,
const
uint8_t
*
cid_prefix
,
const
uint8_t
*
key
)
{
int
generate_quic_connection_id
(
ngtcp2_cid
&
cid
,
size_t
cidlen
,
const
uint8_t
*
cid_prefix
,
const
uint8_t
*
key
)
{
assert
(
cidlen
==
SHRPX_QUIC_SCIDLEN
);
if
(
RAND_bytes
(
cid
.
data
,
cidlen
)
!=
1
)
{
...
...
src/shrpx_quic.h
View file @
1c7a4ecc
...
...
@@ -85,9 +85,8 @@ int generate_quic_retry_connection_id(ngtcp2_cid &cid, size_t cidlen,
const
uint8_t
*
server_id
,
const
uint8_t
*
key
);
int
generate_encrypted_quic_connection_id
(
ngtcp2_cid
&
cid
,
size_t
cidlen
,
const
uint8_t
*
cid_prefix
,
const
uint8_t
*
key
);
int
generate_quic_connection_id
(
ngtcp2_cid
&
cid
,
size_t
cidlen
,
const
uint8_t
*
cid_prefix
,
const
uint8_t
*
key
);
int
encrypt_quic_connection_id
(
uint8_t
*
dest
,
const
uint8_t
*
src
,
const
uint8_t
*
key
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment