python-pyopenssl: bump to 26.2.0
authorAlexandru Ardelean <redacted>
Tue, 2 Jun 2026 18:36:41 +0000 (21:36 +0300)
committerAlexandru Ardelean <redacted>
Fri, 5 Jun 2026 04:37:42 +0000 (07:37 +0300)
Refresh sha256 from PyPI sdist. pyOpenSSL 26.2.0 dropped EC support
from the legacy crypto.PKey API (the call surfaces as "OpenSSL.crypto.Error:
No such key type"); drop the EC-key arm of test.sh accordingly. Upstream
points at the cryptography package for EC key generation.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-pyopenssl/Makefile
lang/python/python-pyopenssl/test.sh

index 3d364206f4a45a27f068e7de37b918b4fdc45bc5..2412d417dbbde7e44c44580a7d761f67b481d2e1 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-pyopenssl
-PKG_VERSION:=26.0.0
+PKG_VERSION:=26.2.0
 PKG_RELEASE:=1
 
 PYPI_NAME:=pyOpenSSL
 PYPI_SOURCE_NAME:=pyopenssl
-PKG_HASH:=f293934e52936f2e3413b89c6ce36df66a0b34ae1ea3a053b8c5020ff2f513fc
+PKG_HASH:=8c6fcecd1183a7fc897548dfe388b0cdb7f37e018200d8409cf33959dbe35387
 
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
index 629cb96a97b051d7b722e45ebf1dcd5acb4449a9..2eebc6ab9aaa4ea207cb705343fb8225a4b11024 100755 (executable)
@@ -16,7 +16,7 @@ if version != "$2":
 
 from OpenSSL import SSL, crypto
 from OpenSSL.crypto import (
-    PKey, TYPE_RSA, TYPE_EC,
+    PKey, TYPE_RSA,
     X509, X509Req, X509Store, X509StoreContext,
     dump_certificate, dump_privatekey, load_certificate, load_privatekey,
     dump_certificate_request,
@@ -24,16 +24,15 @@ from OpenSSL.crypto import (
 )
 
 # --- Key generation ---
+# pyOpenSSL 26.2.0 dropped EC support from the legacy crypto.PKey API
+# ("OpenSSL.crypto.Error: No such key type"). For EC keys, the upstream
+# recommendation is to use the cryptography package directly.
 
 rsa_key = PKey()
 rsa_key.generate_key(TYPE_RSA, 2048)
 assert rsa_key.bits() == 2048
 assert rsa_key.type() == TYPE_RSA
 
-ec_key = PKey()
-ec_key.generate_key(TYPE_EC, 256)
-assert ec_key.type() == TYPE_EC
-
 # --- Self-signed certificate ---
 
 cert = X509()
git clone https://git.99rst.org/PROJECT