-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use OpenSSL 3.0 library context for MD4/MD5 when in FIPS mode
When the system is in FIPS mode, certain algorithms are removed from the system default provider, including MD5 and MD4. These won't be available even if the default and legacy providers are enabled on the default context. To bypass this limitation, we need to create a lib context that will hold both default and legacy providers. Since the OSSL_LIB_CTX from OpenSSL 3.0 is not thread-safe, we define it as thread-local. While this was previously solved by just resorting in internal implementations, using the libctx instead brings the benefit of FreeRADIUS being able to work on FIPS systems without the need of recompiling the package, as well as performance improvements from the OpenSSL implementations. Signed-off-by: Antonio Torres <[email protected]>
- Loading branch information
1 parent
e6d3bfc
commit cd1ff66
Showing
5 changed files
with
185 additions
and
41 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
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
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
Oops, something went wrong.