-
Notifications
You must be signed in to change notification settings - Fork 138
Release 1.0.3 - SSLv3 Support and Enhancements #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d8580da
Release 1.0.3 - SSLv3 Support and Enhancements
jasonacox 290940b
Cleanup temporary and build files in libcurl-build.sh
jasonacox 9517db3
Remove invalid CURLOPT_MAXCONNECTS option and update timing details f…
jasonacox 92649ba
Remove testTV subproject reference
jasonacox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,52 @@ | ||
| # SSLv3 Support Patch for curl 7.77.0 with OpenSSL 3.x | ||
| # NOTE: Use this patch only for curl 7.77.0 | ||
| # | ||
| # This patch enables SSLv3 protocol support for security testing purposes. | ||
| # SSLv3 is an obsolete and insecure protocol (deprecated since 2015) but may | ||
| # be needed to verify that servers properly reject SSLv3 connections. | ||
| # | ||
| # OpenSSL 3.x removed the SSLv3_client_method() function, so this patch uses | ||
| # the modern SSL_CTX_set_min_proto_version() and SSL_CTX_set_max_proto_version() | ||
| # API instead, which is compatible with OpenSSL 3.x. | ||
| # | ||
| # Changes: | ||
| # 1. Remove "No SSLv3 support" error in method selection | ||
| # 2. Add CURL_SSLVERSION_SSLv3 case handler that sets protocol version to SSL3 | ||
| # 3. Explicitly disable all other SSL/TLS protocol versions | ||
| # | ||
| # Usage: patch --ignore-whitespace -N lib/vtls/openssl.c sslv3.patch | ||
| # | ||
| --- openssl.c 2022-05-30 01:05:13.000000000 -0700 | ||
| +++ openssl.c.2 2022-05-30 01:25:52.000000000 -0700 | ||
| @@ -2709,8 +2709,9 @@ | ||
| failf(data, "No SSLv2 support"); | ||
| return CURLE_NOT_BUILT_IN; | ||
| case CURL_SSLVERSION_SSLv3: | ||
| - failf(data, "No SSLv3 support"); | ||
| - return CURLE_NOT_BUILT_IN; | ||
| + req_method = SSLv3_client_method(); | ||
| + /* use_sni(FALSE); */ | ||
| + break; | ||
| default: | ||
| failf(data, "Unrecognized parameter passed via CURLOPT_SSLVERSION"); | ||
| return CURLE_SSL_CONNECT_ERROR; | ||
| @@ -2798,9 +2799,18 @@ | ||
|
|
||
| switch(ssl_version) { | ||
| case CURL_SSLVERSION_SSLv2: | ||
| - case CURL_SSLVERSION_SSLv3: | ||
| return CURLE_NOT_BUILT_IN; | ||
|
|
||
| + case CURL_SSLVERSION_SSLv3: | ||
| + SSL_CTX_set_min_proto_version(backend->ctx, SSL3_VERSION); | ||
| + SSL_CTX_set_max_proto_version(backend->ctx, SSL3_VERSION); | ||
| + ctx_options |= SSL_OP_NO_SSLv2; | ||
| + ctx_options |= SSL_OP_NO_TLSv1; | ||
| + ctx_options |= SSL_OP_NO_TLSv1_1; | ||
| + ctx_options |= SSL_OP_NO_TLSv1_2; | ||
| + ctx_options |= SSL_OP_NO_TLSv1_3; | ||
| + break; | ||
| + | ||
| /* "--tlsv<x.y>" options mean TLS >= version <x.y> */ | ||
| case CURL_SSLVERSION_DEFAULT: | ||
| case CURL_SSLVERSION_TLSv1: /* TLS >= version 1.0 */ |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.