socket.getsockopt(level, optname[, buflen]) Return the value of the given socket option (see the Unix man page
ssl.PEM_cert_to_DER_cert(PEM_cert_string) Given a certificate as an ASCII PEM string, returns a DER-encoded sequence of bytes
pending Return the number of bytes currently in the memory buffer.
socket.fromfd(fd, family, type, proto=0) Duplicate the file descriptor fd (an integer as returned by a file object’s
signal.getitimer(which) Returns current value of a given interval timer specified by which. Availability: Unix.
ssl.PROTOCOL_TLSv1_2 Selects TLS version 1.2 as the channel encryption protocol. This is the most modern version, and probably
socket.inet_ntoa(packed_ip) Convert a 32-bit packed IPv4 address (a bytes-like object
SSLContext.load_default_certs(purpose=Purpose.SERVER_AUTH) Load a set of default “certification authority” (CA) certificates
SSLSocket.pending() Returns the number of already decrypted bytes available for read, pending on the connection.
signal.sigtimedwait(sigset, timeout) Like sigwaitinfo(), but takes an additional timeout argument specifying
Page 6 of 22