Skip to content

Fix test_get_ciphers to work also in environments with FIPS#95084

Closed
frenzymadness wants to merge 1 commit into
python:mainfrom
frenzymadness:fix_test_get_ciphers
Closed

Fix test_get_ciphers to work also in environments with FIPS#95084
frenzymadness wants to merge 1 commit into
python:mainfrom
frenzymadness:fix_test_get_ciphers

Conversation

@frenzymadness
Copy link
Copy Markdown
Contributor

If FIPS is enabled, cipher "AES256-GCM-SHA384" is not available
but a variant of it is, like "ECDHE-ECDSA-AES256-GCM-SHA384".

We have briefly discussed this with @tiran. He said that we can also remove the test but because the get_ciphers method is used only in two tests in this file and test_python_ciphers is skipped unless PY_SSL_DEFAULT_CIPHERS == 1, I believe it's still useful.

Cc @stratakis

If FIPS is enabled, cipher "AES256-GCM-SHA384" is not available
but a variant of it is, like "ECDHE-ECDSA-AES256-GCM-SHA384".
@ghost
Copy link
Copy Markdown

ghost commented Jul 21, 2022

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting review labels Jul 21, 2022
Copy link
Copy Markdown
Contributor

@stratakis stratakis left a comment

Choose a reason for hiding this comment

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

The code changes are trivial and the test passes on a FIPS enabled RHEL9 and CentOS Stream 9 machine.

@frenzymadness
Copy link
Copy Markdown
Contributor Author

Replaced by #95282

@frenzymadness frenzymadness deleted the fix_test_get_ciphers branch July 27, 2022 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants