mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
@@ -1,7 +1,7 @@
|
||||
version = "24.0.*"
|
||||
upstream_repository = "https://github.com/pyca/pyopenssl"
|
||||
# Requires a version of cryptography with a `py.typed` file
|
||||
requires = ["cryptography>=35.0.0"]
|
||||
requires = ["cryptography>=35.0.0", "types-cffi"]
|
||||
partial_stub = true
|
||||
|
||||
[tool.stubtest]
|
||||
|
||||
@@ -4,6 +4,7 @@ from _typeshed import Incomplete, ReadableBuffer
|
||||
from collections.abc import Callable, MutableSequence, Sequence
|
||||
from typing import Any, TypeVar
|
||||
|
||||
import _cffi_backend as cffi
|
||||
from OpenSSL.crypto import X509, PKey, X509Name
|
||||
|
||||
OPENSSL_VERSION_NUMBER: int
|
||||
@@ -164,9 +165,7 @@ class Connection:
|
||||
def server_random(self) -> bytes | None: ...
|
||||
def client_random(self) -> bytes | None: ...
|
||||
def master_key(self) -> bytes | None: ...
|
||||
def export_keying_material(
|
||||
self, label: Incomplete, olen: Incomplete, context: Incomplete = None
|
||||
) -> Incomplete: ... # TODO: type, see RFC-5705
|
||||
def export_keying_material(self, label: bytes, olen: int, context: bytes | None = None) -> cffi.buffer: ...
|
||||
def get_app_data(self) -> Any: ...
|
||||
def set_app_data(self, data: Any) -> None: ...
|
||||
def sock_shutdown(self, how: int, /) -> None: ... # alias to `_socket.socket.shutdown`
|
||||
|
||||
Reference in New Issue
Block a user