-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add initial mbedTLS v4 support #3477
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
Open
Easton97-Jens
wants to merge
15
commits into
owasp-modsecurity:v3/master
Choose a base branch
from
Easton97-Jens:v3/master-mbedtl-v4
base: v3/master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f132bb3
Pin mbedtls submodule to v4.0.0
ba24754
Update all submodules
812174d
Update mbedtl-v4
01c3a2f
Revert "Update all submodules"
23e513c
WIP: intermediate state (mbedtls v4.0.0 and updates)
fba1de5
Build working: update submodules and autotools files
a6a3a3d
auto-generate psa_crypto_driver_wrappers.h during build
27f8dbe
Merge branch 'owasp-modsecurity:v3/master' into v3/master-mbedtl-v4
Easton97-Jens 2cfe164
Merge branch 'owasp-modsecurity:v3/master' into v3/master-mbedtl-v4
Easton97-Jens e2018dc
Change comments from German to English and reset seclang-scanner.cc
f506395
Modernize SHA1 implementation: std::byte, std::array, safer casts
c4ba2df
Fix build script permissions
795cf67
Delete src/parser/test.cc
Easton97-Jens d127722
Restore original ModSecurity license header
d67bf14
Fix SHA1/MD5 digest helpers to be C++17-compatible
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
Submodule mbedtls
updated
1764 files
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 |
|---|---|---|
|
|
@@ -56,7 +56,8 @@ | |
| #endif | ||
| #include <string.h> | ||
|
|
||
| #include "src/utils/sha1.h" | ||
| /*#include "src/utils/sha1.h"*/ | ||
| #include "src/utils/sha256.h" | ||
|
|
||
| namespace modsecurity { | ||
|
|
||
|
|
@@ -72,7 +73,7 @@ void UniqueId::fillUniqueId() { | |
|
|
||
| data = macAddress + name; | ||
|
|
||
| this->uniqueId_str = Utils::Sha1::hexdigest(data); | ||
| this->uniqueId_str = Utils::Sha256::hexdigest(data); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you explain why did you changed the And I'm not sure here |
||
| } | ||
|
|
||
| // Based on: | ||
|
|
||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me check the new version on
mbedtls, and make sure that all of these sources are necessary.