
    f                    B   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y)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y)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    
r   r	   T)slotsc                  :    e Zd ZU  ej                         Zded<   y)Mismatchr   mismatched_idN)r   r   r   attribr   __annotations__r   r   r   r   r   !   s    &twwyM9(r   r   c                      e Zd ZdZy)DNSMismatchz0
    No matching DNSPattern could be found.
    Nr
   r   r   r   r   r   &       r   r   c                      e Zd ZdZy)SRVMismatchz0
    No matching SRVPattern could be found.
    Nr
   r   r   r   r   r   ,   r   r   r   c                      e Zd ZdZy)URIMismatchz0
    No matching URIPattern could be found.
    Nr
   r   r   r   r   r   2   r   r   r   c                      e Zd ZdZy)IPAddressMismatchz6
    No matching IPAddressPattern could be found.
    Nr
   r   r   r   r!   r!   8   r   r   r!   )auto_excc                  F    e Zd ZU dZ ej
                         Zded<   ddZy)VerificationErrorz/
    Service identity verification failed.
    zSequence[Mismatch]errorsc                "    | j                         S )N)__repr__)selfs    r   __str__zVerificationError.__str__F   s    }}r   N)returnstr)	r   r   r   r   r   r   r%   r   r)   r   r   r   r$   r$   >   s!     ")F*r   r$   c                      e Zd ZdZy)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   