관리-도구
편집 파일: ssl.cpython-312.opt-2.pyc
� �Q�f�� � �n � d dl Z d dlZd dlmZ d dlmZmZm Z d dlmZ d dlZd dlm Z mZmZ d dlmZmZmZ d dlmZmZmZmZmZmZmZ d dlmZmZ d d lmZmZm Z d d lm!Z! d dlm#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z, d dlm-Z-m.Z. ej^ d e0d� e�� e j^ de0d� e�� ej^ de0d� e�� ej^ de0d� e�� e j^ de0d� e�� ej^ de0d� e�� e1jd xZ3e1_3 e1jh jk � D � �ci c] \ } }|| �� c}} Z6 e7e1dd� Z8 ee� G d� d� � Z9 ee� G d� d� � Z: ee� G d� d � � Z; ee� G d!� d"� � Z<e jz d#k( rd d$lm>Z>m?Z? d d%l@m@Z@mAZAmBZB d d&l@mCZCmDZDmEZE d dl@ZFd dlGZGd dlHZHd dlIZIeJZKd'gZL eMed(� ZNe-ZOeZPd)� ZQd*� ZRd+� ZS ed,d-� ZTd.� ZU G d/� d0 ed0d1� � ZV G d2� d3eVe� ZW G d4� d5e� ZXeWj� fdddd6�d7�ZZdGe[d8eWj� dddddd9�d:�Z\eZZ]e\Z^ G d;� d<� Z_d=� Z` G d>� d?e@� ZaeaeX_b e_eX_c d@� ZddAZedBZfdC� ZgdD� ZheideEfdE�ZjdF� Zky# e"$ r Y ��Jw xY wc c}} w )H� N)� namedtuple)�Enum�IntEnum�IntFlag)�_simple_enum)�OPENSSL_VERSION_NUMBER�OPENSSL_VERSION_INFO�OPENSSL_VERSION)�_SSLContext� MemoryBIO� SSLSession)�SSLError�SSLZeroReturnError�SSLWantReadError�SSLWantWriteError�SSLSyscallError�SSLEOFError�SSLCertVerificationError)�txt2obj�nid2obj)�RAND_status�RAND_add� RAND_bytes)�RAND_egd) �HAS_SNI�HAS_ECDH�HAS_NPN�HAS_ALPN� HAS_SSLv2� HAS_SSLv3� HAS_TLSv1�HAS_TLSv1_1�HAS_TLSv1_2�HAS_TLSv1_3)�_DEFAULT_CIPHERS�_OPENSSL_API_VERSION� _SSLMethodc �2 � | j d� xr | dk7 S )N� PROTOCOL_�PROTOCOL_SSLv23�� startswith��names �*/opt/alt/python312/lib64/python3.12/ssl.py�<lambda>r0 } s � �����-�K�$�:K�2K�K� )�source�Optionsc �$ � | j d� S )N�OP_r+ r- s r/ r0 r0 � s � �����'r1 �AlertDescriptionc �$ � | j d� S )N�ALERT_DESCRIPTION_r+ r- s r/ r0 r0 � s � ����!5�6r1 �SSLErrorNumberc �$ � | j d� S )N� SSL_ERROR_r+ r- s r/ r0 r0 � s � �����.r1 �VerifyFlagsc �$ � | j d� S )N�VERIFY_r+ r- s r/ r0 r0 � s � �����+r1 � VerifyModec �$ � | j d� S )N�CERT_r+ r- s r/ r0 r0 � s � �����)r1 �PROTOCOL_SSLv2c � � e Zd Zej Zej Zej Z ej Zej Z ej Zej Zy)� TLSVersionN)�__name__� __module__�__qualname__�_ssl�PROTO_MINIMUM_SUPPORTED�MINIMUM_SUPPORTED�PROTO_SSLv3�SSLv3�PROTO_TLSv1�TLSv1� PROTO_TLSv1_1�TLSv1_1� PROTO_TLSv1_2�TLSv1_2� PROTO_TLSv1_3�TLSv1_3�PROTO_MAXIMUM_SUPPORTED�MAXIMUM_SUPPORTED� r1 r/ rD rD � sQ � ��4�4�����E����E�� � �G�� � �G�� � �G��4�4�r1 rD c �&