Current File : //usr/lib/python3/dist-packages/service_identity/__pycache__/exceptions.cpython-312.pyc
�

զe���B�dZddlmZddlmZmZerddlmZddlZGd�de	�Z
ejd	�
�Gd�d��ZGd
�de�Z
Gd�de�ZGd�de�ZGd�de�Zejd	��Gd�de��ZGd�de�Zy)z�
All exceptions and warnings thrown by ``service-identity``.

Separated into an own package for nicer tracebacks, you should still import
them from __init__.py.
�)�annotations)�
TYPE_CHECKING�Sequence�)�	ServiceIDNc��eZdZdZy)�SubjectAltNameWarninga
    This warning is not used anymore and will be removed in a future version.

    Formerly:

    Server Certificate does not contain a ``SubjectAltName``.

    Hostname matching is performed on the ``CommonName`` which is deprecated.

    .. deprecated:: 23.1.0
    N��__name__�
__module__�__qualname__�__doc__���=/usr/lib/python3/dist-packages/service_identity/exceptions.pyr	r	s��
rr	T)�slotsc�:�eZdZUej�Zded<y)�Mismatchr�
mismatched_idN)rrr
�attr�ibr�__annotations__rrrrr!s��&�t�w�w�y�M�9�(rrc��eZdZdZy)�DNSMismatchz0
    No matching DNSPattern could be found.
    Nr
rrrrr&���rrc��eZdZdZy)�SRVMismatchz0
    No matching SRVPattern could be found.
    Nr
rrrrr,rrrc��eZdZdZy)�URIMismatchz0
    No matching URIPattern could be found.
    Nr
rrrrr2rrrc��eZdZdZy)�IPAddressMismatchz6
    No matching IPAddressPattern could be found.
    Nr
rrrr!r!8rrr!)�auto_excc�F�eZdZUdZej
�Zded<dd�Zy)�VerificationErrorz/
    Service identity verification failed.
    zSequence[Mismatch]�errorsc�"�|j�S)N)�__repr__)�selfs r�__str__zVerificationError.__str__Fs���}�}��rN)�return�str)	rrr
rrrr%rr)rrrr$r$>s!���")�����F��*�rr$c��eZdZdZy)�CertificateErrorz�
    Certificate contains invalid or unexpected data.

    This includes the case where s certificate contains no
    ``subjectAltName``\ s.
    Nr
rrrr-r-Js��rr-)r�
__future__r�typingrr�hazmatrr�DeprecationWarningr	�srrrrr!�	Exceptionr$r-rrr�<module>r4s����#�*��!���.������d��)�)��)��(���(���(������������	�����y�r