SSLSocket.read(len=1024, buffer=None) Read up to len bytes of data from the SSL socket and return the result as a bytes
SSLContext.check_hostname Whether to match the peer cert’s hostname with match_hostname() in SSLSocket.d
SSLSocket.version() Return the actual SSL protocol version negotiated by the connection as a string, or None is
seek(pos[, whence]) Set the file’s current position. whence argument is optional and defaults to os.SEEK_SET
socket.inet_pton(address_family, ip_string) Convert an IP address from its family-specific string format to a packed, binary
ssl.PROTOCOL_SSLv23 Selects the highest protocol version that both the client and server support. Despite the name, this option
socket.getsockname() Return the socket’s own address. This is useful to find out the port number of an IPv4/v6 socket, for instance
flush([offset[, size]]) Flushes changes made to the in-memory copy of a file back to disk. Without use of this call there is
SSLContext.get_ca_certs(binary_form=False) Get a list of loaded “certification authority” (CA) certificates. If the binary_form
exception ssl.SSLSyscallError A subclass of SSLError raised when a system error was encountered while trying to
Page 18 of 22