Current Dir: /snap/core18/2999/usr/lib/python3.6/__pycache__/
[FILE] abc.cpython-36.pyc [ edit | delete | rename ]
[FILE] aifc.cpython-36.pyc [ edit | delete | rename ]
[FILE] antigravity.cpython-36.pyc [ edit | delete | rename ]
[FILE] argparse.cpython-36.pyc [ edit | delete | rename ]
[FILE] ast.cpython-36.pyc [ edit | delete | rename ]
[FILE] asynchat.cpython-36.pyc [ edit | delete | rename ]
[FILE] asyncore.cpython-36.pyc [ edit | delete | rename ]
[FILE] base64.cpython-36.pyc [ edit | delete | rename ]
[FILE] bdb.cpython-36.pyc [ edit | delete | rename ]
[FILE] binhex.cpython-36.pyc [ edit | delete | rename ]
[FILE] bisect.cpython-36.pyc [ edit | delete | rename ]
[FILE] bz2.cpython-36.pyc [ edit | delete | rename ]
[FILE] calendar.cpython-36.pyc [ edit | delete | rename ]
[FILE] cgi.cpython-36.pyc [ edit | delete | rename ]
[FILE] cgitb.cpython-36.pyc [ edit | delete | rename ]
[FILE] chunk.cpython-36.pyc [ edit | delete | rename ]
[FILE] cmd.cpython-36.pyc [ edit | delete | rename ]
[FILE] code.cpython-36.pyc [ edit | delete | rename ]
[FILE] codecs.cpython-36.pyc [ edit | delete | rename ]
[FILE] codeop.cpython-36.pyc [ edit | delete | rename ]
[FILE] colorsys.cpython-36.pyc [ edit | delete | rename ]
[FILE] compileall.cpython-36.pyc [ edit | delete | rename ]
[FILE] configparser.cpython-36.pyc [ edit | delete | rename ]
[FILE] contextlib.cpython-36.pyc [ edit | delete | rename ]
[FILE] copy.cpython-36.pyc [ edit | delete | rename ]
[FILE] copyreg.cpython-36.pyc [ edit | delete | rename ]
[FILE] cProfile.cpython-36.pyc [ edit | delete | rename ]
[FILE] crypt.cpython-36.pyc [ edit | delete | rename ]
[FILE] csv.cpython-36.pyc [ edit | delete | rename ]
[FILE] datetime.cpython-36.pyc [ edit | delete | rename ]
[FILE] decimal.cpython-36.pyc [ edit | delete | rename ]
[FILE] difflib.cpython-36.pyc [ edit | delete | rename ]
[FILE] dis.cpython-36.pyc [ edit | delete | rename ]
[FILE] doctest.cpython-36.pyc [ edit | delete | rename ]
[FILE] dummy_threading.cpython-36.pyc [ edit | delete | rename ]
[FILE] enum.cpython-36.pyc [ edit | delete | rename ]
[FILE] filecmp.cpython-36.pyc [ edit | delete | rename ]
[FILE] fileinput.cpython-36.pyc [ edit | delete | rename ]
[FILE] fnmatch.cpython-36.pyc [ edit | delete | rename ]
[FILE] formatter.cpython-36.pyc [ edit | delete | rename ]
[FILE] fractions.cpython-36.pyc [ edit | delete | rename ]
[FILE] ftplib.cpython-36.pyc [ edit | delete | rename ]
[FILE] functools.cpython-36.pyc [ edit | delete | rename ]
[FILE] genericpath.cpython-36.pyc [ edit | delete | rename ]
[FILE] getopt.cpython-36.pyc [ edit | delete | rename ]
[FILE] getpass.cpython-36.pyc [ edit | delete | rename ]
[FILE] gettext.cpython-36.pyc [ edit | delete | rename ]
[FILE] glob.cpython-36.pyc [ edit | delete | rename ]
[FILE] gzip.cpython-36.pyc [ edit | delete | rename ]
[FILE] hashlib.cpython-36.pyc [ edit | delete | rename ]
[FILE] heapq.cpython-36.pyc [ edit | delete | rename ]
[FILE] hmac.cpython-36.pyc [ edit | delete | rename ]
[FILE] imaplib.cpython-36.pyc [ edit | delete | rename ]
[FILE] imghdr.cpython-36.pyc [ edit | delete | rename ]
[FILE] imp.cpython-36.pyc [ edit | delete | rename ]
[FILE] inspect.cpython-36.pyc [ edit | delete | rename ]
[FILE] io.cpython-36.pyc [ edit | delete | rename ]
[FILE] ipaddress.cpython-36.pyc [ edit | delete | rename ]
[FILE] keyword.cpython-36.pyc [ edit | delete | rename ]
[FILE] linecache.cpython-36.pyc [ edit | delete | rename ]
[FILE] locale.cpython-36.pyc [ edit | delete | rename ]
[FILE] lzma.cpython-36.pyc [ edit | delete | rename ]
[FILE] macpath.cpython-36.pyc [ edit | delete | rename ]
[FILE] macurl2path.cpython-36.pyc [ edit | delete | rename ]
[FILE] mailbox.cpython-36.pyc [ edit | delete | rename ]
[FILE] mailcap.cpython-36.pyc [ edit | delete | rename ]
[FILE] mimetypes.cpython-36.pyc [ edit | delete | rename ]
[FILE] modulefinder.cpython-36.pyc [ edit | delete | rename ]
[FILE] netrc.cpython-36.pyc [ edit | delete | rename ]
[FILE] nntplib.cpython-36.pyc [ edit | delete | rename ]
[FILE] ntpath.cpython-36.pyc [ edit | delete | rename ]
[FILE] nturl2path.cpython-36.pyc [ edit | delete | rename ]
[FILE] numbers.cpython-36.pyc [ edit | delete | rename ]
[FILE] opcode.cpython-36.pyc [ edit | delete | rename ]
[FILE] operator.cpython-36.pyc [ edit | delete | rename ]
[FILE] optparse.cpython-36.pyc [ edit | delete | rename ]
[FILE] os.cpython-36.pyc [ edit | delete | rename ]
[FILE] pathlib.cpython-36.pyc [ edit | delete | rename ]
[FILE] pdb.cpython-36.pyc [ edit | delete | rename ]
[FILE] pickle.cpython-36.pyc [ edit | delete | rename ]
[FILE] pickletools.cpython-36.pyc [ edit | delete | rename ]
[FILE] pipes.cpython-36.pyc [ edit | delete | rename ]
[FILE] pkgutil.cpython-36.pyc [ edit | delete | rename ]
[FILE] platform.cpython-36.pyc [ edit | delete | rename ]
[FILE] plistlib.cpython-36.pyc [ edit | delete | rename ]
[FILE] poplib.cpython-36.pyc [ edit | delete | rename ]
[FILE] posixpath.cpython-36.pyc [ edit | delete | rename ]
[FILE] pprint.cpython-36.pyc [ edit | delete | rename ]
[FILE] profile.cpython-36.pyc [ edit | delete | rename ]
[FILE] pstats.cpython-36.pyc [ edit | delete | rename ]
[FILE] pty.cpython-36.pyc [ edit | delete | rename ]
[FILE] pyclbr.cpython-36.pyc [ edit | delete | rename ]
[FILE] pydoc.cpython-36.pyc [ edit | delete | rename ]
[FILE] py_compile.cpython-36.pyc [ edit | delete | rename ]
[FILE] queue.cpython-36.pyc [ edit | delete | rename ]
[FILE] quopri.cpython-36.pyc [ edit | delete | rename ]
[FILE] random.cpython-36.pyc [ edit | delete | rename ]
[FILE] re.cpython-36.pyc [ edit | delete | rename ]
[FILE] reprlib.cpython-36.pyc [ edit | delete | rename ]
[FILE] rlcompleter.cpython-36.pyc [ edit | delete | rename ]
[FILE] runpy.cpython-36.pyc [ edit | delete | rename ]
[FILE] sched.cpython-36.pyc [ edit | delete | rename ]
[FILE] secrets.cpython-36.pyc [ edit | delete | rename ]
[FILE] selectors.cpython-36.pyc [ edit | delete | rename ]
[FILE] shelve.cpython-36.pyc [ edit | delete | rename ]
[FILE] shlex.cpython-36.pyc [ edit | delete | rename ]
[FILE] shutil.cpython-36.pyc [ edit | delete | rename ]
[FILE] signal.cpython-36.pyc [ edit | delete | rename ]
[FILE] site.cpython-36.pyc [ edit | delete | rename ]
[FILE] sitecustomize.cpython-36.pyc [ edit | delete | rename ]
[FILE] smtpd.cpython-36.pyc [ edit | delete | rename ]
[FILE] smtplib.cpython-36.pyc [ edit | delete | rename ]
[FILE] sndhdr.cpython-36.pyc [ edit | delete | rename ]
[FILE] socket.cpython-36.pyc [ edit | delete | rename ]
[FILE] socketserver.cpython-36.pyc [ edit | delete | rename ]
[FILE] sre_compile.cpython-36.pyc [ edit | delete | rename ]
[FILE] sre_constants.cpython-36.pyc [ edit | delete | rename ]
[FILE] sre_parse.cpython-36.pyc [ edit | delete | rename ]
[FILE] ssl.cpython-36.pyc [ edit | delete | rename ]
[FILE] stat.cpython-36.pyc [ edit | delete | rename ]
[FILE] statistics.cpython-36.pyc [ edit | delete | rename ]
[FILE] string.cpython-36.pyc [ edit | delete | rename ]
[FILE] stringprep.cpython-36.pyc [ edit | delete | rename ]
[FILE] struct.cpython-36.pyc [ edit | delete | rename ]
[FILE] subprocess.cpython-36.pyc [ edit | delete | rename ]
[FILE] sunau.cpython-36.pyc [ edit | delete | rename ]
[FILE] symbol.cpython-36.pyc [ edit | delete | rename ]
[FILE] symtable.cpython-36.pyc [ edit | delete | rename ]
[FILE] sysconfig.cpython-36.pyc [ edit | delete | rename ]
[FILE] tabnanny.cpython-36.pyc [ edit | delete | rename ]
[FILE] tarfile.cpython-36.pyc [ edit | delete | rename ]
[FILE] telnetlib.cpython-36.pyc [ edit | delete | rename ]
[FILE] tempfile.cpython-36.pyc [ edit | delete | rename ]
[FILE] textwrap.cpython-36.pyc [ edit | delete | rename ]
[FILE] this.cpython-36.pyc [ edit | delete | rename ]
[FILE] threading.cpython-36.pyc [ edit | delete | rename ]
[FILE] timeit.cpython-36.pyc [ edit | delete | rename ]
[FILE] token.cpython-36.pyc [ edit | delete | rename ]
[FILE] tokenize.cpython-36.pyc [ edit | delete | rename ]
[FILE] trace.cpython-36.pyc [ edit | delete | rename ]
[FILE] traceback.cpython-36.pyc [ edit | delete | rename ]
[FILE] tracemalloc.cpython-36.pyc [ edit | delete | rename ]
[FILE] tty.cpython-36.pyc [ edit | delete | rename ]
[FILE] turtle.cpython-36.pyc [ edit | delete | rename ]
[FILE] types.cpython-36.pyc [ edit | delete | rename ]
[FILE] typing.cpython-36.pyc [ edit | delete | rename ]
[FILE] uu.cpython-36.pyc [ edit | delete | rename ]
[FILE] uuid.cpython-36.pyc [ edit | delete | rename ]
[FILE] warnings.cpython-36.pyc [ edit | delete | rename ]
[FILE] wave.cpython-36.pyc [ edit | delete | rename ]
[FILE] weakref.cpython-36.pyc [ edit | delete | rename ]
[FILE] webbrowser.cpython-36.pyc [ edit | delete | rename ]
[FILE] xdrlib.cpython-36.pyc [ edit | delete | rename ]
[FILE] zipapp.cpython-36.pyc [ edit | delete | rename ]
[FILE] zipfile.cpython-36.pyc [ edit | delete | rename ]
[FILE] _bootlocale.cpython-36.pyc [ edit | delete | rename ]
[FILE] _collections_abc.cpython-36.pyc [ edit | delete | rename ]
[FILE] _compat_pickle.cpython-36.pyc [ edit | delete | rename ]
[FILE] _compression.cpython-36.pyc [ edit | delete | rename ]
[FILE] _dummy_thread.cpython-36.pyc [ edit | delete | rename ]
[FILE] _markupbase.cpython-36.pyc [ edit | delete | rename ]
[FILE] _osx_support.cpython-36.pyc [ edit | delete | rename ]
[FILE] _pydecimal.cpython-36.pyc [ edit | delete | rename ]
[FILE] _pyio.cpython-36.pyc [ edit | delete | rename ]
[FILE] _sitebuiltins.cpython-36.pyc [ edit | delete | rename ]
[FILE] _strptime.cpython-36.pyc [ edit | delete | rename ]
[FILE] _sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc [ edit | delete | rename ]
[FILE] _threading_local.cpython-36.pyc [ edit | delete | rename ]
[FILE] _weakrefset.cpython-36.pyc [ edit | delete | rename ]
[FILE] __future__.cpython-36.pyc [ edit | delete | rename ]
[FILE] __phello__.foo.cpython-36.pyc [ edit | delete | rename ]
Viewing: /snap/core18/2999/usr/lib/python3.6/__pycache__/ssl.cpython-36.pyc
3
Nqi@� � @ sh d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z
mZm
Z ddlZddlmZmZmZ ddlmZmZmZ ddlmZmZmZmZmZmZ ddlmZmZ dd lm Z m!Z!m"Z"m#Z# ydd
lm$Z$ W n e%k
r� Y nX ddlm&Z&m'Z'm(Z(m)Z)m*Z* ddlm+Z+ ej,d
e-dd� ed� ej,de-dd� ed� ej,de-dd� ed� ej,de-dd� ed� ej,de-dd� ed� ej,de-dd� ed� e.j/ Z0e._0dd� e.j1j2� D �Z3e4e.dd�Z5ej6dk�r�ddlm7Z7m8Z8 dd l9m9Z9m:Z:m;Z;m<Z< dd!l9m=Z=m>Z> ddl?Z?ddl@Z@ddlAZAeBZCejD�r2d"gZEng ZEd#ZFd$ZGG d%d&� d&eH�ZIdSd(d)�ZJd*d+� ZKd,d-� ZLed.d/�ZMd0d1� ZNG d2d3� d3ed3d4��ZOG d5d6� d6eOe
�ZPG d7d8� d8e�ZQePjRfdddd9�d:d;�ZSe/fdd<ePjRdddddd=�d>d?�ZTeSZUeTZVG d@dA� dA�ZWG dBdC� dCe9�ZXddd<eYe/ddDdDdf dEdF�ZZdGdH� Z[dIZ\dJZ]dKdL� Z^dMdN� Z_e/dfdOdP�Z`dQdR� ZadS )Ta�
This module provides some more Pythonic support for SSL.
Object types:
SSLSocket -- subtype of socket.socket which does SSL over the socket
Exceptions:
SSLError -- exception raised for I/O errors
Functions:
cert_time_to_seconds -- convert time string used for certificate
notBefore and notAfter functions to integer
seconds past the Epoch (the time values
returned from time.time())
fetch_server_certificate (HOST, PORT) -- fetch the certificate provided
by the server running on HOST at port PORT. No
validation of the certificate is performed.
Integer constants:
SSL_ERROR_ZERO_RETURN
SSL_ERROR_WANT_READ
SSL_ERROR_WANT_WRITE
SSL_ERROR_WANT_X509_LOOKUP
SSL_ERROR_SYSCALL
SSL_ERROR_SSL
SSL_ERROR_WANT_CONNECT
SSL_ERROR_EOF
SSL_ERROR_INVALID_ERROR_CODE
The following group define certificate requirements that one side is
allowing/requiring from the other side:
CERT_NONE - no certificates from the other side are required (or will
be looked at if provided)
CERT_OPTIONAL - certificates are not required, but if provided will be
validated, and if validation fails, the connection will
also fail
CERT_REQUIRED - certificates are required, and will be validated, and
if validation fails, the connection will also fail
The following constants identify various SSL protocol variants:
PROTOCOL_SSLv2
PROTOCOL_SSLv3
PROTOCOL_SSLv23
PROTOCOL_TLS
PROTOCOL_TLS_CLIENT
PROTOCOL_TLS_SERVER
PROTOCOL_TLSv1
PROTOCOL_TLSv1_1
PROTOCOL_TLSv1_2
The following constants identify various SSL alert message descriptions as per
http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-6
ALERT_DESCRIPTION_CLOSE_NOTIFY
ALERT_DESCRIPTION_UNEXPECTED_MESSAGE
ALERT_DESCRIPTION_BAD_RECORD_MAC
ALERT_DESCRIPTION_RECORD_OVERFLOW
ALERT_DESCRIPTION_DECOMPRESSION_FAILURE
ALERT_DESCRIPTION_HANDSHAKE_FAILURE
ALERT_DESCRIPTION_BAD_CERTIFICATE
ALERT_DESCRIPTION_UNSUPPORTED_CERTIFICATE
ALERT_DESCRIPTION_CERTIFICATE_REVOKED
ALERT_DESCRIPTION_CERTIFICATE_EXPIRED
ALERT_DESCRIPTION_CERTIFICATE_UNKNOWN
ALERT_DESCRIPTION_ILLEGAL_PARAMETER
ALERT_DESCRIPTION_UNKNOWN_CA
ALERT_DESCRIPTION_ACCESS_DENIED
ALERT_DESCRIPTION_DECODE_ERROR
ALERT_DESCRIPTION_DECRYPT_ERROR
ALERT_DESCRIPTION_PROTOCOL_VERSION
ALERT_DESCRIPTION_INSUFFICIENT_SECURITY
ALERT_DESCRIPTION_INTERNAL_ERROR
ALERT_DESCRIPTION_USER_CANCELLED
ALERT_DESCRIPTION_NO_RENEGOTIATION
ALERT_DESCRIPTION_UNSUPPORTED_EXTENSION
ALERT_DESCRIPTION_CERTIFICATE_UNOBTAINABLE
ALERT_DESCRIPTION_UNRECOGNIZED_NAME
ALERT_DESCRIPTION_BAD_CERTIFICATE_STATUS_RESPONSE
ALERT_DESCRIPTION_BAD_CERTIFICATE_HASH_VALUE
ALERT_DESCRIPTION_UNKNOWN_PSK_IDENTITY
� N)�
namedtuple)�Enum�IntEnum�IntFlag)�OPENSSL_VERSION_NUMBER�OPENSSL_VERSION_INFO�OPENSSL_VERSION)�_SSLContext� MemoryBIO�
SSLSession)�SSLError�SSLZeroReturnError�SSLWantReadError�SSLWantWriteError�SSLSyscallError�SSLEOFError)�txt2obj�nid2obj)�RAND_status�RAND_add�
RAND_bytes�RAND_pseudo_bytes)�RAND_egd)�HAS_SNI�HAS_ECDH�HAS_NPN�HAS_ALPN�HAS_TLSv1_3)�_OPENSSL_API_VERSION�
_SSLMethodc C s | j d�o| dkS )NZ PROTOCOL_�PROTOCOL_SSLv23)�
startswith)�name� r# �/usr/lib/python3.6/ssl.py�<lambda>| s r% )�source�Optionsc C s
| j d�S )NZOP_)r! )r"