
    !h                    @   S r SSKJr  SSKJrJr  \(       a  SSKJr  SSKr " S S\	5      r
\R                  " S	S
9 " S S5      5       r " S S\5      r " S S\5      r " S S\5      r " S S\5      r\R                  " S	S9 " S S\5      5       r " S S\5      rg)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                      \ rS rSrSrSrg)SubjectAltNameWarning   z
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____firstlineno____doc____static_attributes__r       b/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/service_identity/exceptions.pyr	   r	      s    
r   r	   T)slotsc                  B    \ rS rSr% \R
                  " 5       rS\S'   Srg)Mismatch!   r   mismatched_idr   N)	r   r   r   r   attribr   __annotations__r   r   r   r   r   r   !   s    #wwyM9(r   r   c                      \ rS rSrSrSrg)DNSMismatch&   z(
No matching DNSPattern could be found.
r   Nr   r   r   r   r   r   &       r   r   c                      \ rS rSrSrSrg)SRVMismatch,   z(
No matching SRVPattern could be found.
r   Nr   r   r   r   r"   r"   ,   r    r   r"   c                      \ rS rSrSrSrg)URIMismatch2   z(
No matching URIPattern could be found.
r   Nr   r   r   r   r%   r%   2   r    r   r%   c                      \ rS rSrSrSrg)IPAddressMismatch8   z.
No matching IPAddressPattern could be found.
r   Nr   r   r   r   r(   r(   8   r    r   r(   )auto_excc                  P    \ rS rSr% Sr\R                  " 5       rS\S'   SS jr	Sr
g)	VerificationError>   z'
Service identity verification failed.
zSequence[Mismatch]errorsc                "    U R                  5       $ )N)__repr__)selfs    r   __str__VerificationError.__str__F   s    }}r   r   N)returnstr)r   r   r   r   r   r   r   r.   r   r2   r   r   r   r   r,   r,   >   s     "&F*r   r,   c                      \ rS rSrSrSrg)CertificateErrorJ   z
Certificate contains invalid or unexpected data.

This includes the case where s certificate contains no
``subjectAltName``\ s.
r   Nr   r   r   r   r7   r7   J   s    r   r7   )r   
__future__r   typingr   r   hazmatr   r   DeprecationWarningr	   sr   r   r"   r%   r(   	Exceptionr,   r7   r   r   r   <module>r?      s    # * ! .  d) ) )( ( (   	  y r   