%PDF- %PDF-
Direktori : /lib/python3.12/asyncio/__pycache__/ |
Current File : //lib/python3.12/asyncio/__pycache__/sslproto.cpython-312.pyc |
� ���f�{ � �z � d dl Z d dlZd dlZ d dlZddlmZ ddlmZ ddlmZ ddlm Z ddl mZ e�ej ej fZ G d� d ej � Z G d � dej � Zd� Zd � Z G d� de j( e j* � Z G d� dej. � Zy# e$ r dZY ��w xY w)� N� )� constants)� exceptions)� protocols)� transports)�loggerc � � e Zd ZdZdZdZdZdZy)�SSLProtocolState� UNWRAPPED�DO_HANDSHAKE�WRAPPED�FLUSHING�SHUTDOWNN)�__name__� __module__�__qualname__r r r r r � � �'/usr/lib/python3.12/asyncio/sslproto.pyr r s � ��I�!�L��G��H��Hr r c � � e Zd ZdZdZdZdZy)�AppProtocolState� STATE_INIT�STATE_CON_MADE� STATE_EOF�STATE_CON_LOSTN)r r r r r r r r r r r r s � � �J�%�N��I�%�Nr r c �Z � | rt d� �t j � }|sd|_ |S )Nz(Server side SSL needs a valid SSLContextF)� ValueError�ssl�create_default_context�check_hostname)�server_side�server_hostname� sslcontexts r �_create_transport_contextr$ / s2 � ���C�D�D� �+�+�-�J��$)� �!��r c � � | �|�|dz }n |}d|z }n| }|�|dz }n|}||cxk\ rdk\ sn t d|�d|�d�� �||fS )Ni � r zhigh (z) must be >= low (z) must be >= 0)r )�high�low�kb�hi�los r �add_flowcontrol_defaultsr, = sh � ��|��;��d��B��B��R��B� �� �{� �1�W�� �� ��=�q�=���b�"� #� #� �r�6�Mr c �� � e Zd ZdZej j Zd� Zdd�Z d� Z d� Zd� Zd� Z efd �Zd � Zd� Zd� Zdd �Zd� Zd� Zdd�Zd� Zd� Zed� � Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!y)�_SSLProtocolTransportTc �. � || _ || _ d| _ y )NF)�_loop� _ssl_protocol�_closed)�self�loop�ssl_protocols r �__init__z_SSLProtocolTransport.__init__X s � ��� �)�����r Nc �: � | j j ||� S )z#Get optional transport information.)r1 �_get_extra_info�r3 �name�defaults r �get_extra_infoz$_SSLProtocolTransport.get_extra_info] s � ��!�!�1�1�$��@�@r c �: � | j j |� y �N)r1 �_set_app_protocol)r3 �protocols r �set_protocolz"_SSLProtocolTransport.set_protocola s � ����,�,�X�6r c �. � | j j S r>