Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/service_identity/__pycache__/pyopenssl.cpython-39.pyc
Ðазад
a s�h� � @ s( d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z ddlmZ ddl mZ d d lmZ d dlmZmZmZmZmZmZmZmZ e�e��( ddlmZ dd lmZ W d � n1 s�0 Y dgZ dddd�dd�Z!dddd�dd�Z"ed�Z#ddd�dd�Z$ddd�dd�Z%dS )zA `pyOpenSSL <https://github.com/pyca/pyopenssl>`_-specific code. � )�annotationsN)�Sequence)�decode)� IA5String)�ObjectIdentifier)�GeneralNames� )�CertificateError)�DNS_ID�CertificatePattern� DNSPattern�IPAddress_ID�IPAddressPattern� SRVPattern� URIPattern�verify_service_identity)�X509)� Connection�verify_hostnamer �str�None)� connection�hostname�returnc C s t t| �� �t|�gg d� dS )a Verify whether the certificate of *connection* is valid for *hostname*. :param connection: A pyOpenSSL connection object. :param hostname: The hostname that *connection* should be connected to. :raises service_identity.VerificationError: If *connection* does not provide a certificate that is valid for *hostname*. :raises service_identity.CertificateError: If the certificate chain of *connection* contains a certificate that contains invalid/unexpected data. :returns: ``None`` �Z cert_patternsZobligatory_idsZoptional_idsN)r �extract_patterns�get_peer_certificater )r r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/service_identity/pyopenssl.pyr '