mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Bump pyOpenSSL to 23.3.* (#10936)
Release: https://pypi.org/pypi/pyOpenSSL/23.3.0 Homepage: https://pyopenssl.org/ Repository: https://github.com/pyca/pyopenssl Diff: https://github.com/pyca/pyopenssl/compare/23.2.0...23.3.0 Stubsabot analysis of the diff between the two releases: - Total lines of Python code added: 414. - Total lines of Python code deleted: 717. --- Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9d345b4df4
commit
c74c8b0507
@@ -1,4 +1,4 @@
|
||||
version = "23.2.*"
|
||||
version = "23.3.*"
|
||||
upstream_repository = "https://github.com/pyca/pyopenssl"
|
||||
# Requires a version of cryptography with a `py.typed` file
|
||||
requires = ["cryptography>=35.0.0"]
|
||||
|
||||
@@ -98,6 +98,7 @@ class X509Req:
|
||||
def to_cryptography(self) -> CertificateSigningRequest: ...
|
||||
def verify(self, pkey: PKey) -> bool: ...
|
||||
|
||||
# deprecated
|
||||
class X509Extension:
|
||||
def __init__(
|
||||
self, type_name: bytes, critical: bool, value: bytes, subject: X509 | None = None, issuer: X509 | None = None
|
||||
@@ -106,6 +107,7 @@ class X509Extension:
|
||||
def get_data(self) -> bytes: ...
|
||||
def get_short_name(self) -> bytes: ...
|
||||
|
||||
# deprecated
|
||||
class Revoked:
|
||||
def __init__(self) -> None: ...
|
||||
def all_reasons(self) -> list[bytes]: ...
|
||||
@@ -116,6 +118,7 @@ class Revoked:
|
||||
def set_rev_date(self, when: bytes) -> None: ...
|
||||
def set_serial(self, hex_str: bytes) -> None: ...
|
||||
|
||||
# deprecated
|
||||
class CRL:
|
||||
def __init__(self) -> None: ...
|
||||
def add_revoked(self, revoked: Revoked) -> None: ...
|
||||
@@ -133,7 +136,7 @@ class CRL:
|
||||
class X509Store:
|
||||
def __init__(self) -> None: ...
|
||||
def add_cert(self, cert: X509) -> None: ...
|
||||
def add_crl(self, crl: CRL) -> None: ...
|
||||
def add_crl(self, crl: CRL | CertificateRevocationList) -> None: ...
|
||||
def load_locations(self, cafile: StrOrBytesPath, capath: StrOrBytesPath | None = None) -> None: ...
|
||||
def set_flags(self, flags: int) -> None: ...
|
||||
def set_time(self, vfy_time: datetime) -> None: ...
|
||||
@@ -163,13 +166,7 @@ class X509StoreFlags:
|
||||
CB_ISSUER_CHECK: int
|
||||
PARTIAL_CHAIN: int
|
||||
|
||||
class PKCS7:
|
||||
def get_type_name(self) -> str: ...
|
||||
def type_is_data(self) -> bool: ...
|
||||
def type_is_enveloped(self) -> bool: ...
|
||||
def type_is_signed(self) -> bool: ...
|
||||
def type_is_signedAndEnveloped(self) -> bool: ...
|
||||
|
||||
# deprecated
|
||||
class PKCS12:
|
||||
def __init__(self) -> None: ...
|
||||
def export(self, passphrase: bytes | None = None, iter: int = 2048, maciter: int = 1) -> bytes: ...
|
||||
@@ -182,6 +179,7 @@ class PKCS12:
|
||||
def set_friendlyname(self, name: bytes | None) -> None: ...
|
||||
def set_privatekey(self, pkey: PKey) -> None: ...
|
||||
|
||||
# deprecated
|
||||
class NetscapeSPKI:
|
||||
def __init__(self) -> None: ...
|
||||
def b64_encode(self) -> bytes: ...
|
||||
@@ -202,9 +200,7 @@ def dump_privatekey(
|
||||
def load_privatekey(type: int, buffer: str | bytes, passphrase: bytes | Callable[[], bytes] | None = None) -> PKey: ...
|
||||
def dump_publickey(type: int, pkey: PKey) -> bytes: ...
|
||||
def load_publickey(type: int, buffer: str | bytes) -> PKey: ...
|
||||
def dump_crl(type: int, crl: CRL) -> bytes: ...
|
||||
def load_crl(type: int, buffer: str | bytes) -> CRL: ...
|
||||
def load_pkcs7_data(type: int, buffer: str | bytes) -> PKCS7: ...
|
||||
def load_pkcs12(buffer: str | bytes, passphrase: bytes | None = None) -> PKCS12: ...
|
||||
def sign(pkey: PKey, data: str | bytes, digest: str) -> bytes: ...
|
||||
def verify(cert: X509, signature: bytes, data: str | bytes, digest: str) -> None: ...
|
||||
def dump_crl(type: int, crl: CRL) -> bytes: ... # deprecated
|
||||
def load_crl(type: int, buffer: str | bytes) -> CRL: ... # deprecated
|
||||
def sign(pkey: PKey, data: str | bytes, digest: str) -> bytes: ... # deprecated
|
||||
def verify(cert: X509, signature: bytes, data: str | bytes, digest: str) -> None: ... # deprecated
|
||||
|
||||
Reference in New Issue
Block a user