From 67716ae223d7b1b7e143612f5217bdecebf5f137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 12 Jul 2024 12:15:49 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 saltbundlepy-asn1crypto revision bc2a6282a3eb58b33f78f98f4a10644f --- .gitattributes | 23 ++++++ 1.5.1.tar.gz | 3 + saltbundlepy-asn1crypto.changes | 140 ++++++++++++++++++++++++++++++++ saltbundlepy-asn1crypto.spec | 69 ++++++++++++++++ 4 files changed, 235 insertions(+) create mode 100644 .gitattributes create mode 100644 1.5.1.tar.gz create mode 100644 saltbundlepy-asn1crypto.changes create mode 100644 saltbundlepy-asn1crypto.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/1.5.1.tar.gz b/1.5.1.tar.gz new file mode 100644 index 0000000..da34394 --- /dev/null +++ b/1.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c06e6827971891a7c42299eff3f0881d6fbf1ada53f11c5797240a9c0cec6a1c +size 686175 diff --git a/saltbundlepy-asn1crypto.changes b/saltbundlepy-asn1crypto.changes new file mode 100644 index 0000000..7afe088 --- /dev/null +++ b/saltbundlepy-asn1crypto.changes @@ -0,0 +1,140 @@ +------------------------------------------------------------------- +Thu Dec 14 14:10:58 UTC 2023 - Victor Zhestkov + +- Update to 1.5.1: + * Handle RSASSA-PSS in `keys.PrivateKeyInfo.bit_size` and + `keys.PublicKeyInfo.bit_size` + * Handle RSASSA-PSS in `keys.PrivateKeyInfo.wrap` and + `keys.PublicKeyInfo.wrap` + * Updated docs for `keys.PrivateKeyInfo.algorithm` and + `keys.PublicKeyInfo.algorithm` to reflect that they can return + `"rsassa_pss"` + * Fix `tsp.TimeStampAndCRL` to be a `core.Sequence` instead of a + `core.SequenceOf` *via @joernheissler* + * Added OIDs for Edwards curves from RFC 8410 - via @MatthiasValvekens + * Fixed convenience attributes on `algos.EncryptionAlgorithm` when the + algorithm is RC2 *via @joernheissler* + * Added Microsoft OIDs `microsoft_enrollment_csp_provider` + (`1.3.6.1.4.1.311.13.2.2`), `microsoft_os_version` + (`1.3.6.1.4.1.311.13.2.3`) and `microsoft_request_client_info` + (`1.3.6.1.4.1.311.21.20`) + to `csr.CSRAttributeType` along with supporting extension structures + *via @qha* + * Added Microsoft OID `microsoft_enroll_certtype` (`1.3.6.1.4.1.311.20.2`) + to `x509.ExtensionId` *via @qha* + * Fixed a few bugs with parsing indefinite-length encodings *via @davidben* + * Added various bounds checks to parsing engine *via @davidben* + * Fixed a bug with tags not always being minimally encoded *via @davidben* + * Fixed `cms.RoleSyntax`, `cms.SecurityCategory` and `cms.AttCertIssuer` to + have explicit instead of implicit tagging *via @MatthiasValvekens* + * Fixed tagging of, and default value for fields in `cms.Clearance` *via + @MatthiasValvekens* + * Fixed calling `.dump(force=True)` when the value has undefined/unknown + `core.Sequence` fields. Previously the value would be truncated, now + the existing encoding is preserved. + * Added sMIME capabilities (`1.2.840.113549.1.9.15`) support from RFC 2633 + to `cms.CMSAttribute` *via Hellzed* + +- Update to 1.4.0: + * core.ObjectIdentifier and all derived classes now obey X.660 ยง7.6 + and thus restrict the first arc to 0 to 2, and the second arc to less + than 40 if the first arc is 0 or 1. This also fixes parsing of OIDs where + the first arc is 2 and the second arc is greater than 39. + * Fixed keys.PublicKeyInfo.bit_size to return an int rather than a float + on Python 3 when working with elliptic curve keys + * Fixed the asn1crypto-tests sdist on PyPi to work properly to generate a .whl + +- Update to 1.3.0: + * Added encrypt_key_pref to cms.CMSAttributeType(), along with related structures + * Added Brainpool curves from RFC 5639 to keys.NamedCurve() + * Fixed x509.Certificate().subject_directory_attributes_value + * Fixed some incorrectly computed minimum elliptic curve primary key encoding sizes in keys.NamedCurve() + * Fixed a TypeError when trying to call .untag() or .copy() on a core.UTCTime() + or core.GeneralizedTime(), or a value containing one, when using Python 2 + * Added asn1crypto.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. + * Added User ID to x509.NameType() + * Added various EC named curves to keys.NamedCurve() + * Fix an absolute import in keys to a relative import + +- Update to 1.0.0: + * BREAKING CHANGE: Removed functionality to calculate public key + values from private key values. Alternatives have been added to + oscrypto. (see upstream changelog) + * Significantly improved parsing of core.UTCTime() and core.GeneralizedTime() + values that include timezones and fractional seconds + * core.Choice() may now be constructed by a 2-element tuple or a 1-key dict + * No longer try to load optional performance dependency, libcrypto, + on Mac or Linux + * Add support for explicit RSA SSA PSS to keys.PublicKeyInfo() + and keys.PrivateKeyInfo() + * Add/improve few algorithms (RC4, secp256k1, SHA-3, SHAKE) + * Added asn1crypto_tests package to PyPi + * Many bugfixes + +------------------------------------------------------------------- +Mon Apr 4 12:23:02 UTC 2022 - Victor Zhestkov + +- Strictly require Python 3.10 with saltbundlepy requrement + +------------------------------------------------------------------- +Sat Dec 16 23:08:43 UTC 2017 - arun@gmx.de + +- update to version 0.24.0: + * x509.Certificate().self_signed will no longer return "yes" under + any circumstances. This helps prevent confusion since the library + does not verify the signature. Instead a library like oscrypto + should be used to confirm if a certificate is self-signed. + * Added various OIDs to x509.KeyPurposeId() + * Added x509.Certificate().private_key_usage_period_value + * Added structures for parsing common subject directory attributes + for X.509 certificates, including x509.SubjectDirectoryAttribute() + * Added algos.AnyAlgorithmIdentifier() for situations where an + algorithm identifier may contain a digest, signed digest or + encryption algorithm OID + * Fixed a bug with + x509.Certificate().subject_directory_attributes_value not + returning the correct value + * Fixed a bug where explicitly-tagged fields in a core.Sequence() + would not function properly when the field had a default value + * Fixed a bug with type checking in pem.armor() + +------------------------------------------------------------------- +Sat Nov 11 17:39:30 UTC 2017 - arun@gmx.de + +- update to version 0.23.0: + * Backwards compatibility break: the tag_type, explicit_tag and + explicit_class attributes on core.Asn1Value no longer exist and + were replaced by the implicit and explicit attributes. Field param + dicts may use the new explicit and implicit keys, or the old + tag_type and tag keys. The attribute changes will likely to have + little to no impact since they were primarily an implementation + detail. + * Teletex strings used inside of X.509 certificates are now + interpreted using Windows-1252 (a superset of ISO-8859-1). This + enables compatibility with certificates generated by + OpenSSL. Strict parsing of Teletex strings can be retained by + using the x509.strict_teletex() context manager. + * Added support for nested explicit tagging, supporting values that + are defined with explicit tagging and then added as a field of + another structure using explicit tagging. + * Fixed a UnicodeDecodeError when trying to find the (optional) + dependency OpenSSL on Python 2 + * Fixed next_update field of crl.TbsCertList to be optional + * Added the x509.Certificate.sha256_fingerprint property + * x509.Certificate.ocsp_urls and x509.DistributionPoint.url will now + return https://, ldap:// and ldaps:// URLs in addition to http://. + * Added CMS Attribute Protection definitions from RFC 6211 + * Added OIDs from RFC 6962 + +------------------------------------------------------------------- +Fri Mar 17 11:33:07 UTC 2017 - jengelh@inai.de + +- Ensure neutrality of descriptions + +------------------------------------------------------------------- +Thu Mar 16 14:18:32 UTC 2017 - tbechtold@suse.com + +- Initial packaging (version 0.22.0) diff --git a/saltbundlepy-asn1crypto.spec b/saltbundlepy-asn1crypto.spec new file mode 100644 index 0000000..fd46237 --- /dev/null +++ b/saltbundlepy-asn1crypto.spec @@ -0,0 +1,69 @@ +# +# spec file for package saltbundlepy-asn1crypto +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}} +%define pythons saltbundlepy + +# Disable python bytecompile for all distros +# It's called explicitly in the spec +%global __brp_python_bytecompile %{nil} + +%bcond_without test +Name: saltbundlepy-asn1crypto +Version: 1.5.1 +Release: 0 +Summary: ASN.1 parser and serializer for Python +License: MIT +Group: Development/Languages/Python +URL: https://github.com/wbond/asn1crypto +Source: https://github.com/wbond/asn1crypto/archive/%{version}.tar.gz +BuildRequires: %{saltbundlepy_module devel > 3.10} +BuildRequires: %{saltbundlepy_module pip} +BuildRequires: %{saltbundlepy_module wheel} +BuildRequires: saltbundlepy-rpm-macros +BuildRequires: fdupes +Requires: saltbundlepy-base +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages + +%description +ASN.1 parser and serializer with definitions for private keys, +public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, +PKCS#8, PKCS#12, PKCS#5, X509 and TSP + +%prep +%autosetup -p1 -n asn1crypto-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install + +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest discover -v + +%files %{python_files} +%license LICENSE +%{python_sitelib}/asn1crypto +%{python_sitelib}/asn1crypto-%{version}*-info + +%changelog