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
94d76c04
Commit
94d76c04
authored
Jul 24, 2019
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h2load: Add --groups option
parent
23ccaa61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
src/h2load.cc
src/h2load.cc
+15
-1
src/h2load.h
src/h2load.h
+2
-0
No files found.
src/h2load.cc
View file @
94d76c04
...
...
@@ -77,6 +77,7 @@ bool recorded(const std::chrono::steady_clock::time_point &t) {
Config
::
Config
()
:
ciphers
(
tls
::
DEFAULT_CIPHER_LIST
),
groups
(
"P-256:X25519:P-384:P-521"
),
data_length
(
-
1
),
addrs
(
nullptr
),
nreqs
(
1
),
...
...
@@ -2220,6 +2221,10 @@ Options:
in <URI>.
--rps=<N> Specify request per second for each client. --rps and
--timing-script-file are mutually exclusive.
--groups=<GROUPS>
Specify the supported groups.
Default: )"
<<
config
.
groups
<<
R"(
-v, --verbose
Output debug information.
--version Display version information and exit.
...
...
@@ -2280,6 +2285,7 @@ int main(int argc, char **argv) {
{
"log-file"
,
required_argument
,
&
flag
,
10
},
{
"connect-to"
,
required_argument
,
&
flag
,
11
},
{
"rps"
,
required_argument
,
&
flag
,
12
},
{
"groups"
,
required_argument
,
&
flag
,
13
},
{
nullptr
,
0
,
nullptr
,
0
}};
int
option_index
=
0
;
auto
c
=
getopt_long
(
argc
,
argv
,
...
...
@@ -2530,6 +2536,10 @@ int main(int argc, char **argv) {
config
.
rps
=
v
;
break
;
}
case
13
:
// --groups
config
.
groups
=
optarg
;
break
;
}
break
;
default:
...
...
@@ -2758,7 +2768,11 @@ int main(int argc, char **argv) {
}
// TODO Use SSL_CTX_set_ciphersuites to set TLSv1.3 cipher list
// TODO Use SSL_CTX_set1_groups_list to set key share
if
(
SSL_CTX_set1_groups_list
(
ssl_ctx
,
config
.
groups
.
c_str
())
!=
1
)
{
std
::
cerr
<<
"SSL_CTX_set1_groups_list failed"
<<
std
::
endl
;
exit
(
EXIT_FAILURE
);
}
#ifndef OPENSSL_NO_NEXTPROTONEG
SSL_CTX_set_next_proto_select_cb
(
ssl_ctx
,
client_select_next_proto_cb
,
...
...
src/h2load.h
View file @
94d76c04
...
...
@@ -75,6 +75,8 @@ struct Config {
std
::
string
connect_to_host
;
std
::
string
ifile
;
std
::
string
ciphers
;
// supported groups (or curves).
std
::
string
groups
;
// length of upload data
int64_t
data_length
;
addrinfo
*
addrs
;
...
...
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