diff --git a/SOURCES/00146-hashlib-fips.patch b/SOURCES/00146-hashlib-fips.patch index c675f69..32fe26e 100644 --- a/SOURCES/00146-hashlib-fips.patch +++ b/SOURCES/00146-hashlib-fips.patch @@ -113,7 +113,7 @@ index 053a7ad..fadd8fa 100644 try: - globals()[__func_name] = __get_hash(__func_name) + func = __get_hash(__func_name) -+ if 'sha3_' or 'blake2' or 'shake_' in __func_name: ++ if __func_name.startswith(('sha3_', 'blake2', 'shake_')): + func = __ignore_usedforsecurity(func) + globals()[__func_name] = func except ValueError: diff --git a/SPECS/python.spec b/SPECS/python.spec index 4953ca0..f1fafcb 100644 --- a/SPECS/python.spec +++ b/SPECS/python.spec @@ -131,7 +131,7 @@ Summary: Version 3 of the Python programming language aka Python 3000 Name: %{?scl_prefix}python Version: %{pybasever}.3 -Release: 1%{?dist} +Release: 3%{?dist} License: Python Group: Development/Languages @@ -1628,6 +1628,13 @@ rm -fr %{buildroot} # ====================================================== %changelog +* Tue Jan 09 2018 Charalampos Stratakis - 3.6.3-3 +- Bump release for rebuild + +* Mon Jan 08 2018 Charalampos Stratakis - 3.6.3-2 +- Fix conditional logic in the hashlib patch. +Resolves: rhbz#1532663 + * Thu Oct 05 2017 Charalampos Stratakis - 3.6.3-1 - Update to Python 3.6.3 Resolves: rhbz#1498526