-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from szmyd/master
Merge stable/v8.x into master.
- Loading branch information
Showing
4 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
3rd_party/pistache/patches/0.0.5-0002-disable-older-tls.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff -Naur a/src/server/listener.cc b/src/server/listener.cc | ||
--- a/src/server/listener.cc 2022-09-02 13:59:00.000000000 -0700 | ||
+++ b/src/server/listener.cc 2024-10-10 11:00:05.512069049 -0700 | ||
@@ -105,6 +105,24 @@ | ||
throw std::runtime_error(err); | ||
} | ||
} | ||
+ if (!SSL_CTX_set_options(GetSSLContext(ctx), SSL_OP_NO_SSLv3)) | ||
+ { | ||
+ std::string err = "SSL error - cannot disable SSLv3: " | ||
+ + ssl_print_errors_to_string(); | ||
+ throw std::runtime_error(err); | ||
+ } | ||
+ if (!SSL_CTX_set_options(GetSSLContext(ctx), SSL_OP_NO_TLSv1)) | ||
+ { | ||
+ std::string err = "SSL error - cannot disable TLSv1.0: " | ||
+ + ssl_print_errors_to_string(); | ||
+ throw std::runtime_error(err); | ||
+ } | ||
+ if (!SSL_CTX_set_options(GetSSLContext(ctx), SSL_OP_NO_TLSv1_1)) | ||
+ { | ||
+ std::string err = "SSL error - cannot disable TLSv1.1: " | ||
+ + ssl_print_errors_to_string(); | ||
+ throw std::runtime_error(err); | ||
+ } | ||
|
||
if (cb != NULL) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters