o
    >h                     @  s   d Z ddlmZ ddlmZmZ erddlmZ ddlZG dd de	Z
ejd	d
G dd dZG dd deZG dd deZG dd deZG dd deZejd	dG dd deZG dd deZdS )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                   @     e Zd ZdZdS )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__ r   r   {/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/service_identity/exceptions.pyr          r   T)slotsc                   @  s   e Zd ZU e Zded< dS )Mismatchr   mismatched_idN)r
   r   r   attribr   __annotations__r   r   r   r   r   !   s   
 r   c                   @  r   )DNSMismatchz0
    No matching DNSPattern could be found.
    Nr	   r   r   r   r   r   &   r   r   c                   @  r   )SRVMismatchz0
    No matching SRVPattern could be found.
    Nr	   r   r   r   r   r   ,   r   r   c                   @  r   )URIMismatchz0
    No matching URIPattern could be found.
    Nr	   r   r   r   r   r   2   r   r   c                   @  r   )IPAddressMismatchz6
    No matching IPAddressPattern could be found.
    Nr	   r   r   r   r   r   8   r   r   )auto_excc                   @  s,   e Zd ZU dZe Zded< d	ddZdS )
VerificationErrorz/
    Service identity verification failed.
    zSequence[Mismatch]errorsreturnstrc                 C  s   |   S )N)__repr__)selfr   r   r   __str__F   s   zVerificationError.__str__N)r   r   )	r
   r   r   r   r   r   r   r   r"   r   r   r   r   r   >   s   
 r   c                   @  r   )CertificateErrorz
    Certificate contains invalid or unexpected data.

    This includes the case where s certificate contains no
    ``subjectAltName``\ s.
    Nr	   r   r   r   r   r#   J   r   r#   )r   
__future__r   typingr   r   hazmatr   r   DeprecationWarningr   sr   r   r   r   r   	Exceptionr   r#   r   r   r   r   <module>   s     

