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"] 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: ...