mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Changes: * Added the missing methods `selected_alpn_protocol()` and `version()` to `SSLObject` * Fixed the naming of the `shared_ciphers()` method in `SSLSocket` and `SSLObject` (was missing the last "s") * Fixed return type of `cipher()` (it's documented to return `None` if no connection has been established) * Fixed second argument in cipher and shared_ciphers The TLS version is a string, like "TLSv1.2". * Added explicit overloads for getpeercert() Its return type can be determined statically based on the `binary_form` argument.