From e0f355e2781d4a269036481830319b5b19e757c8 Mon Sep 17 00:00:00 2001 From: stubsabot <> Date: Sat, 25 Mar 2023 00:09:58 +0000 Subject: [PATCH 1/2] [stubsabot] Bump pyOpenSSL to 23.1.* Release: https://pypi.org/pypi/pyOpenSSL/23.1.0 Homepage: https://pyopenssl.org/ Diff: https://github.com/pyca/pyopenssl/compare/23.0.0...23.1.0 Stubsabot analysis of the diff between the two releases: - Total lines of Python code added: 122. - Total lines of Python code deleted: 45. If stubtest fails for this PR: - Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR) - Fix stubtest failures in another PR, then close this PR Note that you will need to close and re-open the PR in order to trigger CI --- stubs/pyOpenSSL/METADATA.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/pyOpenSSL/METADATA.toml b/stubs/pyOpenSSL/METADATA.toml index f1c9279f484a..baa929c652c4 100644 --- a/stubs/pyOpenSSL/METADATA.toml +++ b/stubs/pyOpenSSL/METADATA.toml @@ -1,4 +1,4 @@ -version = "23.0.*" +version = "23.1.*" # Requires a version of cryptography with a `py.typed` file requires = ["cryptography>=35.0.0"] From 54d6c10f692df6ba9e33963be089f32858e37cdb Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sat, 25 Mar 2023 00:40:44 +0000 Subject: [PATCH 2/2] Add some new/missing stuff --- stubs/pyOpenSSL/OpenSSL/SSL.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stubs/pyOpenSSL/OpenSSL/SSL.pyi b/stubs/pyOpenSSL/OpenSSL/SSL.pyi index 7754145a79c9..1aa1d6a47760 100644 --- a/stubs/pyOpenSSL/OpenSSL/SSL.pyi +++ b/stubs/pyOpenSSL/OpenSSL/SSL.pyi @@ -131,6 +131,9 @@ class Connection: def connect(self, addr: str | bytes | Sequence[str | int]) -> None: ... def connect_ex(self, addr: _Address | bytes) -> int: ... def accept(self) -> tuple[Connection, _RetAddress]: ... + def DTLSv1_listen(self) -> None: ... + def DTLSv1_get_timeout(self) -> float | None: ... + def DTLSv1_handle_timeout(self) -> bool: ... def shutdown(self) -> bool: ... def do_handshake(self) -> None: ... def get_certificate(self) -> X509 | None: ...