You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test case does not work for OpenSSL >= 3.0.1. The test assumes that the version starts with M.NN.FF, but OpenSSL 3 uses M.NN.PP. The FF (fix) part is always 00. The issue didn't show up before because fix and patch level were 0 for 3.0.0 alphas and betas.
FYI, OpenSSL_version_num() is not deprecated and Python does not fail to build with OpenSSL 3.0.1. One test case is failing because OpenSSL 3 changed the version scheme slightly.
Activity
penguinolog commentedon Dec 17, 2021
Documentation: https://www.openssl.org/docs/manmaster/man3/OpenSSL_version_num.html
Python build fail with OpenSSL 3.0.1
(looks like OpenSSL broken deprecated API)
penguinolog commentedon Dec 17, 2021
Error example:
test_ssl: testing with 'OpenSSL 3.0.1 14 Dec 2021' (3, 0, 0, 1, 0)
...
AssertionError: False is not true : ('OpenSSL 3.0.1 14 Dec 2021', (3, 0, 0, 1, 0), '0x30000010')
tiran commentedon Dec 17, 2021
The test case does not work for OpenSSL >= 3.0.1. The test assumes that the version starts with M.NN.FF, but OpenSSL 3 uses M.NN.PP. The FF (fix) part is always 00. The issue didn't show up before because fix and patch level were 0 for 3.0.0 alphas and betas.
8 remaining items
tiran commentedon Dec 17, 2021
FYI, OpenSSL_version_num() is not deprecated and Python does not fail to build with OpenSSL 3.0.1. One test case is failing because OpenSSL 3 changed the version scheme slightly.
[-]OpenSSL deprecated OpenSSL_version_num() since version 3.0.0[/-][+]OpenSSL 3.0 uses different version scheme[/+][-]OpenSSL deprecated OpenSSL_version_num() since version 3.0.0[/-][+]OpenSSL 3.0 uses different version scheme[/+]tiran commentedon Dec 17, 2021
New changeset 2985fea by Christian Heimes in branch 'main':
bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170)
2985fea
miss-islington commentedon Dec 17, 2021
New changeset 251d2ea by Miss Islington (bot) in branch '3.10':
bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170)
251d2ea
tiran commentedon Dec 17, 2021
New changeset a9b3edb by Christian Heimes in branch '3.9':
[3.9] bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170) (GH-30173)
a9b3edb
hroncok commentedon Mar 18, 2022
3.8 is security only, so I suppose there is no chance of getting the test fixed as well?
tiran commentedon Mar 18, 2022
Correct, I didn't backport this fix and several other OpenSSL 3.0 related fixes to Python 3.8 because 3.8 is in security-only mode.
hroncok commentedon Mar 18, 2022
Ack, will do it downstream-only.
stratakis commentedon Mar 18, 2022
3.8 builds are still running on the buildbots so not fixing 3.8 will cause them to fail.
stratakis commentedon Mar 22, 2022
Case in point: https://buildbot.python.org/all/#/builders/355/builds/338
vstinner commentedon May 19, 2022
I created a backport to 3.8: #92954
kumaraditya303 commentedon May 22, 2022
Fixed by #30170