Skip to content
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

Deprecate crypto:start/stop() #8592

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

sverker
Copy link
Contributor

@sverker sverker commented Jun 18, 2024

Deprecating crypto:start() as it does not work for FIPS mode (see #8590).
crypto:stop() also deprecated just for symmetry.

All calls to crypto:start/stop() changed to application:start/stop(crypto).

Also deprecate crypto:enable_fips_mode/1 as it's not thread safe and should not be used in production.

@sverker sverker added team:VM Assigned to OTP team VM enhancement labels Jun 18, 2024
@sverker sverker self-assigned this Jun 18, 2024
Copy link
Contributor

github-actions bot commented Jun 18, 2024

CT Test Results

    15 files     681 suites   5h 3m 18s ⏱️
 6 847 tests  6 442 ✅   400 💤 5 ❌
17 069 runs  15 569 ✅ 1 494 💤 6 ❌

For more details on these failures, see this check.

Results for commit 15f7d8e.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@sverker sverker force-pushed the sverker/crypto/deprecate-start-stop branch 2 times, most recently from c6d175b to cc46f7a Compare June 25, 2024 12:09
@sverker sverker added the testing currently being tested, tag is used by OTP internal CI label Jun 25, 2024
sverker added 3 commits July 2, 2024 20:06
Use application:start/stop(crypto) instead.
According to OpenSSL 3 documentation the function
EVP_default_properties_enable_fips() used by enable_fips_mode

"...are not thread safe. They are intended to be called only
during the initialisation phase of a libctx."
@sverker sverker force-pushed the sverker/crypto/deprecate-start-stop branch from 15f7d8e to 4667d78 Compare July 2, 2024 18:09
@sverker sverker merged commit dfd6cce into erlang:master Jul 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants