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

ssl: adjust cacertfile option #6287

Merged

Conversation

u3s
Copy link
Contributor

@u3s u3s commented Sep 8, 2022

  • perform conversions before loading cert data from file
  • convert relative path to absolute for avoiding collisions
  • convert symlink to actual file path

@u3s u3s added the team:PS Assigned to OTP team PS label Sep 8, 2022
@u3s u3s self-assigned this Sep 8, 2022
lib/ssl/src/ssl.erl Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2022

CT Test Results

       2 files       64 suites   47m 45s ⏱️
   742 tests    676 ✔️   66 💤 0
3 534 runs  2 762 ✔️ 772 💤 0

Results for commit 443696e.

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

@@ -390,12 +390,12 @@ alternative_path_hardlink(Config) when is_list(Config) ->
alternative_path_symlink() ->
[{doc,"Test that internal reference table contains expected data for"
" absolute and symbolic link. "
"This test verifies handling of same file with an alternative reference."}].
%% see alternative_path_hardlink for specification
"This test verifies handling of same file with an alternative reference."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add some explanation of why counters change in the way they do!? See for instance the manual clean-up case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to improve the comment.

@u3s u3s force-pushed the kuba/ssl/cacertfile_absname_readlink/OTP-18099 branch from 443696e to 3573d89 Compare September 8, 2022 17:04
- perform conversions before loading cert data from file
- convert relative path to absolute for avoiding collisions
- convert symlink to actual file path
@u3s u3s force-pushed the kuba/ssl/cacertfile_absname_readlink/OTP-18099 branch from 3573d89 to 8c7fa30 Compare September 8, 2022 17:11
@u3s u3s merged commit d301c45 into erlang:maint Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:PS Assigned to OTP team PS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants