/snap/core22/2411/usr/lib/python3.10/asyncio/__pycache__
Edit: /snap/core22/2411/usr/lib/python3.10/asyncio/__pycache__/sslproto.cpython-310.pyc (21954B)
o
`wiCk @ s d dl Z d dlZzd dlZW n ey dZY nw ddlmZ ddlmZ ddlmZ ddlm Z dd Z
d Zd
ZdZ
dZG d
d deZG dd dejejZG dd dejZdS ) N ) constants) protocols)
transports)loggerc C s" | rt dt }|sd|_|S )Nz(Server side SSL needs a valid SSLContextF)
ValueErrorsslcreate_default_contextcheck_hostname)server_sideserver_hostname
sslcontext r '/usr/lib/python3.10/asyncio/sslproto.py_create_transport_context s r UNWRAPPEDDO_HANDSHAKEWRAPPEDSHUTDOWNc @ s~ e Zd ZdZdZdddZedd Zedd Zed
d Z edd
Z
dddZdddZdd Z
dddZdddZdS )_SSLPipea An SSL "Pipe".
An SSL pipe allows you to communicate with an SSL/TLS protocol instance
through memory buffers. It can be used to implement a security layer for an
existing connection where you don't have access to the connection's file
descriptor, or for some reason you don't want to use it.
An SSL pipe can be in "wrapped" and "unwrapped" mode. In unwrapped mode,
data is passed through untransformed. In wrapped mode, application level
data is encrypted to SSL record level data and vice versa. The SSL record
level is the lowest level in the SSL protocol suite and is what travels
as-is over the wire.
An SslPipe initially is in "unwrapped" mode. To start SSL, call
do_handshake(). To shutdown SSL again, call unwrap().
i Nc C sH || _ || _|| _t| _t | _t | _d| _ d| _
d| _d| _dS )a
The *context* argument specifies the ssl.SSLContext to use.
The *server_side* argument indicates whether this is a server side or
client side transport.
The optional *server_hostname* argument can be used to specify the
hostname you are connecting to. You may only specify this parameter if
the _ssl module supports Server Name Indication (SNI).
NF)
_context_server_side_server_hostname
_UNWRAPPED_stater MemoryBIO _incoming _outgoing_sslobj
_need_ssldata
_handshake_cb_shutdown_cb)selfcontextr r r r r __init__7 s
z_SSLPipe.__init__c C | j S )z*The SSL context passed to the constructor.)r r" r r r r# M s z_SSLPipe.contextc C r% )z^The internal ssl.SSLObject instance.
Return None if the pipe is not wrapped.
)r r&