| Server IP : 3.111.61.48 / Your IP : 216.73.216.7 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/service_identity/__pycache__/ |
Upload File : |
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"