
    _f                    x   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e	          Z
 ej        d	
           G d d                      Z G d de          Z G d de          Z G d de          Z G d de          Z ej        d	           G d de                      Z G 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__     M/var/www/html/env/lib/python3.11/site-packages/service_identity/exceptions.pyr	   r	      s        
 
 
 
r   r	   T)slotsc                  8    e Zd ZU  ej                    Zded<   dS )Mismatchr   mismatched_idN)r   r   r   attribr   __annotations__r   r   r   r   r   !   s+         &twyyM((((((r   r   c                      e Zd ZdZdS )DNSMismatchz0
    No matching DNSPattern could be found.
    Nr
   r   r   r   r   r   &              r   r   c                      e Zd ZdZdS )SRVMismatchz0
    No matching SRVPattern could be found.
    Nr
   r   r   r   r   r   ,   r   r   r   c                      e Zd ZdZdS )URIMismatchz0
    No matching URIPattern could be found.
    Nr
   r   r   r   r   r   2   r   r   r   c                      e Zd ZdZdS )IPAddressMismatchz6
    No matching IPAddressPattern could be found.
    Nr
   r   r   r   r!   r!   8   r   r   r!   )auto_excc                  D    e Zd ZU dZ ej                    Zded<   ddZdS )	VerificationErrorz/
    Service identity verification failed.
    zSequence[Mismatch]errorsreturnstrc                *    |                                  S )N)__repr__)selfs    r   __str__zVerificationError.__str__F   s    }}r   N)r&   r'   )	r   r   r   r   r   r   r%   r   r+   r   r   r   r$   r$   >   sO           ")F****     r   r$   c                      e Zd ZdZdS )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   s           r   r-   )r   
__future__r   typingr   r   hazmatr   r   DeprecationWarningr	   sr   r   r   r   r!   	Exceptionr$   r-   r   r   r   <module>r4      s    # " " " " " * * * * * * * *  "!!!!!!     .    d) ) ) ) ) ) ) )    (       (       (               	       y     r   