0x1949 Team - FAZEMRX - MANAGER
Edit File: cryptography.cpython-310.pyc
o ��\q � @ s� d Z ddlmZmZmZ ddlZddlmZmZm Z m Z mZmZm Z ddlmZ ddlmZ ddlmZ dd lmZmZmZmZmZmZmZmZ dd lmZ dgZdd� Z d d� Z!ed�Z"dd� Z#dS )zL `cryptography.x509 <https://github.com/pyca/cryptography>`_-specific code. � )�absolute_import�division�print_functionN)�DNSName�ExtensionOID� IPAddress�NameOID�ObjectIdentifier� OtherName�UniformResourceIdentifier)�ExtensionNotFound)�decode)� IA5String� )�DNS_ID�CertificateError� DNSPattern�IPAddress_ID�IPAddressPattern� SRVPattern� URIPattern�verify_service_identity)�SubjectAltNameWarning�verify_certificate_hostnamec C � t t| �t|�gg d� dS )a� Verify whether *certificate* is valid for *hostname*. .. note:: Nothing is verified about the *authority* of the certificate; the caller must verify that the certificate chains to an appropriate trust root themselves. :param cryptography.x509.Certificate certificate: A cryptography X509 certificate object. :param unicode hostname: The hostname that *certificate* should be valid for. :raises service_identity.VerificationError: If *certificate* is not valid for *hostname*. :raises service_identity.CertificateError: If *certificate* contains invalid/unexpected data. :returns: ``None`` �� cert_patterns�obligatory_ids�optional_idsN)r �extract_idsr )�certificate�hostname� r"