Patch 146 in python3.spec, which adds "usedforsecurity" arguments to hashlib functions (used to override FIPS mode restrictions in OpenSSL), was removed due to incompatibility with OpenSSL 1.1.0. Reimplement and restore it. The patch was removed in commit 737c23e8071caa7a8ac9573b677f1af3977f362c.
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'.
WIP PR upstream: https://github.com/python/cpython/pull/5548
This is currently blocked by compatibility with OpenSSL 1.1.1.
Relevant upstream change of PEP 452 https://github.com/python/peps/pull/530
This message is a reminder that Fedora 28 is nearing its end of life. On 2019-May-28 Fedora will stop maintaining and issuing updates for Fedora 28. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '28'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 28 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
The "usedforsecurity" flags aren't useful for FIPS compliance in RHEL. On the RHEL side, there might need to be some changes, and we'd like to push them upstream. But there's no reason to track this in Fedora.