AlkantarClanX12
Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/ |
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/ssl.cpython-310.opt-2.pyc |
o 6��f�� � @ s� d dl Z d dlZd dlmZ d dlmZmZm Z d dlZd dlmZm Z mZ d dlmZmZmZ d dlmZmZmZmZmZmZmZ d dlmZmZ d dlmZmZmZm Z zd d lm!Z! W n e"yh Y nw d d lm#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/de0d d� ed� e j/de0dd� ed� ej/de0dd� ed� ej/de0dd� ed� e j/de0dd� ed� ej/de0dd� ed� e1j2 Z3e1_3dd� e1j4�5� D �Z6e7e1dd�Z8G dd� de�Z9G dd � d e�Z:G d!d"� d"e�Z;G d#d$� d$e�Z<e j=d%k�rd d&lm>Z>m?Z? d d'l@m@Z@mAZAmBZB d d(l@mCZCmDZDmEZE d dl@ZFd dlGZGd dlHZHd dlIZIeJZKd)gZLeMed*�ZNe-ZOeZPd+d,� ZQd-d.� ZRd/d0� ZSd1d2� ZTed3d4�ZUd5d6� ZVG d7d8� d8ed8d9��ZWG d:d;� d;eWe�ZXG d<d=� d=e�ZYeXjZfdddd>�d?d@�Z[dZe\dAeXjZddddddB�dCdD�Z]e[Z^e]Z_G dEdF� dF�Z`dGdH� ZaG dIdJ� dJe@�ZbebeY_ce`eY_ddddAe\e2ddKdKdf dLdM�ZedNdO� ZfdPZgdQZhdRdS� ZidTdU� ZjekdeEfdVdW�ZldXdY� ZmdS )[� N)� namedtuple)�Enum�IntEnum�IntFlag)�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_pseudo_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 C s | � d�o| dkS )NZ PROTOCOL_�PROTOCOL_SSLv23�� startswith��name� r, �*/opt/alt/python310/lib64/python3.10/ssl.py�<lambda>} s r. )�source�Optionsc C � | � d�S )NZOP_r( r* r, r, r- r. � � ZAlertDescriptionc C r1 )NZALERT_DESCRIPTION_r( r* r, r, r- r. � r2 ZSSLErrorNumberc C r1 )NZ SSL_ERROR_r( r* r, r, r- r. � r2 �VerifyFlagsc C r1 )NZVERIFY_r( r* r, r, r- r. � r2 � VerifyModec C r1 )NZCERT_r( r* r, r, r- r. � r2 c C s i | ]\}}||�qS r, r, )�.0r+ �valuer, r, r- � <dictcomp>� s r7 ZPROTOCOL_SSLv2c @ s6 e Zd ZejZejZejZ ej ZejZ ejZejZdS )� TLSVersionN)�__name__� __module__�__qualname__�_sslZPROTO_MINIMUM_SUPPORTEDZMINIMUM_SUPPORTEDZPROTO_SSLv3�SSLv3ZPROTO_TLSv1ZTLSv1Z PROTO_TLSv1_1ZTLSv1_1Z PROTO_TLSv1_2ZTLSv1_2Z PROTO_TLSv1_3ZTLSv1_3ZPROTO_MAXIMUM_SUPPORTEDZMAXIMUM_SUPPORTEDr, r, r, r- r8 � s r8 c @ s&