Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
baa9fcf8
Commit
baa9fcf8
authored
5 years ago
by
Seva
Committed by
Adrien Béraud
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
dhtproxy: disable renegotiation only if supported
parent
04a383c4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dht_proxy_server.cpp
+2
-0
2 additions, 0 deletions
src/dht_proxy_server.cpp
with
2 additions
and
0 deletions
src/dht_proxy_server.cpp
+
2
−
0
View file @
baa9fcf8
...
@@ -230,7 +230,9 @@ DhtProxyServer::DhtProxyServer(
...
@@ -230,7 +230,9 @@ DhtProxyServer::DhtProxyServer(
if
(
ec
)
if
(
ec
)
throw
std
::
runtime_error
(
"Error setting tls context options: "
+
ec
.
message
());
throw
std
::
runtime_error
(
"Error setting tls context options: "
+
ec
.
message
());
// add more security options
// add more security options
#ifdef SSL_OP_NO_RENEGOTIATION
SSL_CTX_set_options
(
tls_context
.
native_handle
(),
SSL_OP_NO_RENEGOTIATION
);
// CVE-2009-3555
SSL_CTX_set_options
(
tls_context
.
native_handle
(),
SSL_OP_NO_RENEGOTIATION
);
// CVE-2009-3555
#endif
// node private key
// node private key
auto
pk
=
identity
.
first
->
serialize
();
auto
pk
=
identity
.
first
->
serialize
();
pk_
=
std
::
make_unique
<
asio
::
const_buffer
>
(
static_cast
<
void
*>
(
pk
.
data
()),
(
std
::
size_t
)
pk
.
size
());
pk_
=
std
::
make_unique
<
asio
::
const_buffer
>
(
static_cast
<
void
*>
(
pk
.
data
()),
(
std
::
size_t
)
pk
.
size
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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