14
0

Accepting request 777399 from home:cunix:branches:devel:languages:python

Giving project maintainers chance to judge.

OBS-URL: https://build.opensuse.org/request/show/777399
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oscrypto?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2020-02-20 06:46:21 +00:00
committed by Git OBS Bridge
parent aa872c8423
commit d1a9457737
4 changed files with 72 additions and 9 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a07fb15d2d4f0ee1fe6d447410584f92db330e4c80c874a2dd03840922bdfbb8
size 273546

3
oscrypto-1.2.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c4a1e8e0bff33e23b9c8b2034458ac72db799d3ab8e05d5773d1effdc027e7f7
size 304079

View File

@@ -1,3 +1,66 @@
-------------------------------------------------------------------
Wed Feb 19 12:00:00 UTC 2020 - cunix@mail.de
- Version bump to 1.2.0
* Allow `oscrypto.use_ctypes()`, `oscrypto.use_openssl()` and
`oscrypto.use_winlegacy()` to be called after initialization
as long as the configuration does not change
- Changes from 1.1.1
* Use versioned libcrypto.dylib and libssl.dylib on macOS
Catalina to prevent segfaults
* Fix warnings reported when using with cffi 1.13.2
- Changes from 1.1.0
* Added `oscrypto.load_order()`, which returns a `list` of unicode
strings of the names of the fully-qualified module names for all
of submodules of the package. The module names are listed in their
dependency load order.
This is primarily intended for the sake of implementing hot reloading.
- Changes from 1.0.0
* Backwards Compatibility Breaks
~ `oscrypto.backend()` will now return `"mac"` instead of
`"osx"` when running on a Mac and not explicitly configured
to use OpenSSL
* Enhancements
~ Added functionality to calculate public keys from private keys
since that was removed from asn1crypto:
+ `asn1crypto.keys.PrivateKeyInfo().unwrap()` is now
`asymmetric.PrivateKey().unwrap()`
+ `asn1crypto.keys.PrivateKeyInfo().public_key` is now
`asymmetric.PrivateKey().public_key.unwrap()`
+ `asn1crypto.keys.PrivateKeyInfo().public_key_info` is now
`asymmetric.PrivateKey().public_key.asn1`
+ `asn1crypto.keys.PrivateKeyInfo().fingerprint` is now
`asymmetric.PrivateKey().fingerprint`
+ `asn1crypto.keys.PublicKeyInfo().unwrap()` is now
`asymmetric.PublicKey().unwrap()`
+ `asn1crypto.keys.PublicKeyInfo().fingerprint` is now
`asymmetric.PublicKey().fingerprint`
~ Added `oscrypto.use_ctypes()` to avoid CFFI if desired
~ Added `tls.TLSSocket().port` property
~ Improved handling of disconnects with `tls.TLSSocket()`
~ Improved error messages when dealing with failures originating in OpenSSL
~ Allow PEM-encoded files to have leading whitespace when loaded via
`keys.parse_private()`, `keys.parse_public()` and
`keys.parse_certificate()`
~ Restructured internal imports of asn1crypto to make vendoring easier
~ No longer touch the user keychain on Macs when generating keys, instead
use a temporary one
* Bug Fixes
~Fixed compatibility with Python 3.7+
~ Fixed compatibility with LibreSSL version 2.2.x+
~ Fixed a bug where `tls.TLSSocket().read_until()` that would sometimes read
more data from the socket than necessary
~ Fixed a buffer overflow when reading data from an OpenSSL memory bio
~ Fixed a bug in `util.pbkdf2()` that would cause incorrect output in some
situations when run on Windows XP or with OpenSSL 0.9.8
~ Fixed `aes_cbc_no_padding_encrypt()` so it can be executed when the backend
is OpenSSL
~ A `SecTrustRef` obtained from `SSLCopyPeerTrust()` on Mac is now
properly released
-------------------------------------------------------------------
Wed Jun 12 20:00:00 UTC 2019 - cunix@mail.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-oscrypto
#
# Copyright (c) 2019 cunix
# Copyright (c) 2019-2020 cunix
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -28,7 +28,7 @@
%endif
Name: python-oscrypto%{psuffix}
Version: 0.19.1
Version: 1.2.0
Release: 0
Summary: Python crypto using OS libraries
License: MIT
@@ -36,7 +36,7 @@ Group: Development/Languages/Python
URL: https://github.com/wbond/oscrypto
Source: https://github.com/wbond/oscrypto/archive/%{version}.tar.gz#/oscrypto-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module asn1crypto >= 0.22.0}
BuildRequires: %{python_module asn1crypto >= 1.0.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
@@ -45,7 +45,7 @@ BuildRequires: ca-certificates
BuildRequires: ca-certificates-mozilla
%endif
BuildArch: noarch
Requires: python-asn1crypto >= 0.22.0
Requires: python-asn1crypto >= 1.0.0
%python_subpackages
%description
@@ -56,7 +56,7 @@ on the OS for patching. Works on Windows, OS X and Linux/BSD.
%prep
%setup -q -n oscrypto-%{version}
# /docs has a different readme.md file - should not overwrite main readme.md
mv readme.md README.md
mv docs/readme.md docs/docs_readme.md
%build
%python_build
@@ -74,7 +74,7 @@ mv readme.md README.md
%files %{python_files}
%license LICENSE
%doc README.md changelog.md docs/*
%doc readme.md changelog.md docs/*
%{python_sitelib}/*
%endif