Skip to content

Commit

Permalink
Add get_verified_chain and get_unverified_chain for Python 3.13 (p…
Browse files Browse the repository at this point in the history
…ython#11724)

Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 5, 2024
1 parent 7119589 commit a9d644b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stdlib/ssl.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ class SSLSocket(socket.socket):
def recvmsg(self, *args: Never, **kwargs: Never) -> Never: ... # type: ignore[override]
def recvmsg_into(self, *args: Never, **kwargs: Never) -> Never: ... # type: ignore[override]
def sendmsg(self, *args: Never, **kwargs: Never) -> Never: ... # type: ignore[override]
if sys.version_info >= (3, 13):
def get_verified_chain(self) -> list[bytes]: ...
def get_unverified_chain(self) -> list[bytes]: ...

class TLSVersion(enum.IntEnum):
MINIMUM_SUPPORTED: int
Expand Down Expand Up @@ -476,6 +479,9 @@ class SSLObject:
def version(self) -> str | None: ...
def get_channel_binding(self, cb_type: str = "tls-unique") -> bytes | None: ...
def verify_client_post_handshake(self) -> None: ...
if sys.version_info >= (3, 13):
def get_verified_chain(self) -> list[bytes]: ...
def get_unverified_chain(self) -> list[bytes]: ...

@final
class MemoryBIO:
Expand Down

0 comments on commit a9d644b

Please sign in to comment.