import python-suds-0.7-0.11.94664ddd46a6.el8
This commit is contained in:
parent
9083f587df
commit
c18b19caee
@ -1,4 +1,4 @@
|
|||||||
From 56caa0af4f21d696df50be5fc15b74c74239d130 Mon Sep 17 00:00:00 2001
|
From 75e4a9eb929520d95cb55b2d850af7ba849fd014 Mon Sep 17 00:00:00 2001
|
||||||
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
||||||
Date: Mon, 28 Feb 2022 11:23:55 +0100
|
Date: Mon, 28 Feb 2022 11:23:55 +0100
|
||||||
Subject: [PATCH] Use usedforsecurity=False for md5() calls to make suds work
|
Subject: [PATCH] Use usedforsecurity=False for md5() calls to make suds work
|
||||||
@ -10,7 +10,7 @@ Subject: [PATCH] Use usedforsecurity=False for md5() calls to make suds work
|
|||||||
2 files changed, 12 insertions(+), 2 deletions(-)
|
2 files changed, 12 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/suds/reader.py b/suds/reader.py
|
diff --git a/suds/reader.py b/suds/reader.py
|
||||||
index 31c5ee7..d31b147 100644
|
index 31c5ee7..3354b5d 100644
|
||||||
--- a/suds/reader.py
|
--- a/suds/reader.py
|
||||||
+++ b/suds/reader.py
|
+++ b/suds/reader.py
|
||||||
@@ -58,7 +58,12 @@ def mangle(self, name, x):
|
@@ -58,7 +58,12 @@ def mangle(self, name, x):
|
||||||
@ -19,16 +19,16 @@ index 31c5ee7..d31b147 100644
|
|||||||
"""
|
"""
|
||||||
- h = md5(name.encode()).hexdigest()
|
- h = md5(name.encode()).hexdigest()
|
||||||
+ try:
|
+ try:
|
||||||
+ h = md5(name.encode()).hexdigest()
|
|
||||||
+ except ValueError:
|
|
||||||
+ # FIPS requires usedforsecurity=False and might not be
|
+ # FIPS requires usedforsecurity=False and might not be
|
||||||
+ # available on all distros: https://bugs.python.org/issue9216
|
+ # available on all distros: https://bugs.python.org/issue9216
|
||||||
+ h = md5(name.encode(), usedforsecurity=False).hexdigest()
|
+ h = md5(name.encode(), usedforsecurity=False).hexdigest()
|
||||||
|
+ except AttributeError:
|
||||||
|
+ h = md5(name.encode()).hexdigest()
|
||||||
return '%s-%s' % (h, x)
|
return '%s-%s' % (h, x)
|
||||||
|
|
||||||
|
|
||||||
diff --git a/suds/wsse.py b/suds/wsse.py
|
diff --git a/suds/wsse.py b/suds/wsse.py
|
||||||
index 96d9eb6..a871657 100644
|
index 96d9eb6..474d15a 100644
|
||||||
--- a/suds/wsse.py
|
--- a/suds/wsse.py
|
||||||
+++ b/suds/wsse.py
|
+++ b/suds/wsse.py
|
||||||
@@ -158,7 +158,12 @@ def setnonce(self, text=None):
|
@@ -158,7 +158,12 @@ def setnonce(self, text=None):
|
||||||
@ -37,11 +37,11 @@ index 96d9eb6..a871657 100644
|
|||||||
s.append(Token.sysdate())
|
s.append(Token.sysdate())
|
||||||
- m = md5()
|
- m = md5()
|
||||||
+ try:
|
+ try:
|
||||||
+ m = md5()
|
|
||||||
+ except ValueError:
|
|
||||||
+ # FIPS requires usedforsecurity=False and might not be
|
+ # FIPS requires usedforsecurity=False and might not be
|
||||||
+ # available on all distros: https://bugs.python.org/issue9216
|
+ # available on all distros: https://bugs.python.org/issue9216
|
||||||
+ m = md5(usedforsecurity=False)
|
+ m = md5(usedforsecurity=False)
|
||||||
|
+ except AttributeError:
|
||||||
|
+ m = md5()
|
||||||
m.update(':'.join(s))
|
m.update(':'.join(s))
|
||||||
self.nonce = m.hexdigest()
|
self.nonce = m.hexdigest()
|
||||||
else:
|
else:
|
||||||
|
@ -28,7 +28,7 @@ services and WSDL based objects can be easily inspected.
|
|||||||
Summary: %{sum}
|
Summary: %{sum}
|
||||||
Name: python-suds
|
Name: python-suds
|
||||||
Version: 0.7
|
Version: 0.7
|
||||||
Release: 0.10.%{shortcommit}%{?dist}
|
Release: 0.11.%{shortcommit}%{?dist}
|
||||||
Source0: https://bitbucket.org/jurko/suds/get/%{shortcommit}.tar.bz2
|
Source0: https://bitbucket.org/jurko/suds/get/%{shortcommit}.tar.bz2
|
||||||
Patch0: fix_http_test.patch
|
Patch0: fix_http_test.patch
|
||||||
Patch1: bz1921920-fix-fips-issue.patch
|
Patch1: bz1921920-fix-fips-issue.patch
|
||||||
@ -117,7 +117,7 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Mar 1 2022 Oyvind Albrigtsen <oalbrigt@redhat.com> - 0.7-0.10.94664ddd46a6
|
* Tue Mar 8 2022 Oyvind Albrigtsen <oalbrigt@redhat.com> - 0.7-0.11.94664ddd46a6
|
||||||
- Fix FIPS issue
|
- Fix FIPS issue
|
||||||
Resolves: rhbz#1921920
|
Resolves: rhbz#1921920
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user