From fcf55eaaab8d2070e0646457a17f2fca2c0cc472326ee9c748d34b98ad27c91d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 29 Sep 2022 19:34:28 +0000 Subject: [PATCH] - update to 22.1.0: * Remove support for SSLv2 and SSLv3. * The minimum ``cryptography`` version is now 37.0.2. * The ``OpenSSL.crypto.X509StoreContextError`` exception has been refactored, changing its internal attributes. * Add ``OpenSSL.SSL.Connection.set_verify`` and ``OpenSSL.SSL.Connection.get_verify_mode`` to override the context object's verification flags. * Add ``OpenSSL.SSL.Connection.use_certificate`` and ``OpenSSL.SSL.Connection.use_privatekey`` to set a certificate per connection (and not just per context) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=95 --- pyOpenSSL-22.0.0.tar.gz | 3 --- pyOpenSSL-22.1.0.tar.gz | 3 +++ python-pyOpenSSL.changes | 14 ++++++++++++++ python-pyOpenSSL.spec | 6 +++--- skip-networked-test.patch | 20 ++++++++++++-------- 5 files changed, 32 insertions(+), 14 deletions(-) delete mode 100644 pyOpenSSL-22.0.0.tar.gz create mode 100644 pyOpenSSL-22.1.0.tar.gz diff --git a/pyOpenSSL-22.0.0.tar.gz b/pyOpenSSL-22.0.0.tar.gz deleted file mode 100644 index 22f2adc..0000000 --- a/pyOpenSSL-22.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:660b1b1425aac4a1bea1d94168a85d99f0b3144c869dd4390d27629d0087f1bf -size 178438 diff --git a/pyOpenSSL-22.1.0.tar.gz b/pyOpenSSL-22.1.0.tar.gz new file mode 100644 index 0000000..f21f3ff --- /dev/null +++ b/pyOpenSSL-22.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a83b7b272dd595222d672f5ce29aa030f1fb837630ef229f62e72e395ce8968 +size 181704 diff --git a/python-pyOpenSSL.changes b/python-pyOpenSSL.changes index 6d156ef..19edb43 100644 --- a/python-pyOpenSSL.changes +++ b/python-pyOpenSSL.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Sep 29 19:33:29 UTC 2022 - Dirk Müller + +- update to 22.1.0: + * Remove support for SSLv2 and SSLv3. + * The minimum ``cryptography`` version is now 37.0.2. + * The ``OpenSSL.crypto.X509StoreContextError`` exception has been refactored, + changing its internal attributes. + * Add ``OpenSSL.SSL.Connection.set_verify`` and ``OpenSSL.SSL.Connection.get_verify_mode`` + to override the context object's verification flags. + * Add ``OpenSSL.SSL.Connection.use_certificate`` and + ``OpenSSL.SSL.Connection.use_privatekey`` + to set a certificate per connection (and not just per context) + ------------------------------------------------------------------- Wed Jun 1 08:25:21 UTC 2022 - Steve Kowalik diff --git a/python-pyOpenSSL.spec b/python-pyOpenSSL.spec index d1d75d4..1b7f080 100644 --- a/python-pyOpenSSL.spec +++ b/python-pyOpenSSL.spec @@ -27,7 +27,7 @@ %endif %global skip_python2 1 Name: python-pyOpenSSL%{psuffix} -Version: 22.0.0 +Version: 22.1.0 Release: 0 Summary: Python wrapper module around the OpenSSL library License: Apache-2.0 @@ -41,7 +41,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with test} -BuildRequires: %{python_module cryptography >= 35} +BuildRequires: %{python_module cryptography >= 37.0.2} BuildRequires: %{python_module flaky} BuildRequires: %{python_module pretend} BuildRequires: %{python_module pyOpenSSL >= %version} @@ -50,7 +50,7 @@ BuildRequires: ca-certificates-mozilla BuildRequires: openssl %endif Requires: python-cffi -Requires: python-cryptography >= 35 +Requires: python-cryptography >= 37.0.2 Provides: pyOpenSSL = %{version} BuildArch: noarch %python_subpackages diff --git a/skip-networked-test.patch b/skip-networked-test.patch index 7d219a6..7ee1860 100644 --- a/skip-networked-test.patch +++ b/skip-networked-test.patch @@ -1,6 +1,8 @@ ---- a/tests/test_ssl.py -+++ b/tests/test_ssl.py -@@ -1240,6 +1240,7 @@ class TestContext(object): +Index: pyOpenSSL-22.1.0/tests/test_ssl.py +=================================================================== +--- pyOpenSSL-22.1.0.orig/tests/test_ssl.py ++++ pyOpenSSL-22.1.0/tests/test_ssl.py +@@ -1244,6 +1244,7 @@ class TestContext: reason="set_default_verify_paths appears not to work on Windows. " "See LP#404343 and LP#404344.", ) @@ -8,8 +10,10 @@ def test_set_default_verify_paths(self): """ `Context.set_default_verify_paths` causes the platform-specific CA ---- a/setup.cfg -+++ b/setup.cfg +Index: pyOpenSSL-22.1.0/setup.cfg +=================================================================== +--- pyOpenSSL-22.1.0.orig/setup.cfg ++++ pyOpenSSL-22.1.0/setup.cfg @@ -2,6 +2,8 @@ minversion = 3.0.1 strict = true @@ -17,9 +21,9 @@ +markers = + network: test case requires network connection - [bdist_wheel] - universal = 1 -@@ -19,4 +21,3 @@ doc-files = doc/_build/html + [metadata] + license_file = LICENSE +@@ -16,4 +18,3 @@ doc_files = doc/_build/html [egg_info] tag_build = tag_date = 0