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
9e703170
Commit
9e703170
authored
Aug 30, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Enable --honor-cipher-order automatically when --ciphers is used
parent
5166a61b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/shrpx.cc
src/shrpx.cc
+2
-0
src/shrpx_ssl.cc
src/shrpx_ssl.cc
+3
-3
No files found.
src/shrpx.cc
View file @
9e703170
...
...
@@ -502,6 +502,8 @@ void print_help(std::ostream& out)
<<
" SSL/TLS:
\n
"
<<
" --ciphers=<SUITE> Set allowed cipher list. The format of the
\n
"
<<
" string is described in OpenSSL ciphers(1).
\n
"
<<
" If this option is used, --honor-cipher-order
\n
"
<<
" is implicitly enabled.
\n
"
<<
" --honor-cipher-order
\n
"
<<
" Honor server cipher order, giving the
\n
"
<<
" ability to mitigate BEAST attacks.
\n
"
...
...
src/shrpx_ssl.cc
View file @
9e703170
...
...
@@ -152,9 +152,9 @@ SSL_CTX* create_ssl_context(const char *private_key_file,
<<
ERR_error_string
(
ERR_get_error
(),
NULL
);
DIE
();
}
if
(
get_config
()
->
honor_cipher_order
)
{
SSL_CTX_set_options
(
ssl_ctx
,
SSL_OP_CIPHER_SERVER_PREFERENCE
);
}
SSL_CTX_set_options
(
ssl_ctx
,
SSL_OP_CIPHER_SERVER_PREFERENCE
);
}
else
if
(
get_config
()
->
honor_cipher_order
)
{
SSL_CTX_set_options
(
ssl_ctx
,
SSL_OP_CIPHER_SERVER_PREFERENCE
);
}
// Use P-256, which is sufficiently secure at the time of this
...
...
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