mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
python-pyopenssl: bump to 26.4.0
Refresh sha256 from the PyPI sdist. 26.4.0 drops OpenSSL.crypto.X509Req and dump_certificate_request, so test.sh can no longer import them; remove them and the CSR block. CSR handling now lives in cryptography.x509, which is not this package. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
1 parent
6d14d771a9
commit
eec0050c53
2 files changed
+3
-14
No files matched your search
@@ -8,12 +8,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-pyopenssl
|
||||
PKG_VERSION:=26.2.0
|
||||
PKG_VERSION:=26.4.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PYPI_NAME:=pyOpenSSL
|
||||
PYPI_SOURCE_NAME:=pyopenssl
|
||||
PKG_HASH:=8c6fcecd1183a7fc897548dfe388b0cdb7f37e018200d8409cf33959dbe35387
|
||||
PKG_HASH:=28dfcce0162b9211413e26dfbfdf1d24317fbeba18fc93c12400a1856b2a0bc7
|
||||
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
@@ -17,9 +17,8 @@ if version != "$2":
|
||||
from OpenSSL import SSL, crypto
|
||||
from OpenSSL.crypto import (
|
||||
PKey, TYPE_RSA,
|
||||
X509, X509Req, X509Store, X509StoreContext,
|
||||
X509, X509Store, X509StoreContext,
|
||||
dump_certificate, dump_privatekey, load_certificate, load_privatekey,
|
||||
dump_certificate_request,
|
||||
FILETYPE_PEM,
|
||||
)
|
||||
|
||||
@@ -63,16 +62,6 @@ assert key_pem.startswith(b"-----BEGIN")
|
||||
key2 = load_privatekey(FILETYPE_PEM, key_pem)
|
||||
assert key2.bits() == 2048
|
||||
|
||||
# --- Certificate signing request ---
|
||||
|
||||
req = X509Req()
|
||||
req.get_subject().CN = "csr.example.com"
|
||||
req.set_pubkey(rsa_key)
|
||||
req.sign(rsa_key, "sha256")
|
||||
assert req.verify(rsa_key)
|
||||
csr_pem = dump_certificate_request(FILETYPE_PEM, req)
|
||||
assert csr_pem.startswith(b"-----BEGIN CERTIFICATE REQUEST-----")
|
||||
|
||||
# --- X509Store verification ---
|
||||
|
||||
store = X509Store()
|
||||
|
||||
Reference in new issue
Block a user