զeBdZddlmZddlmZmZerddlmZddlZGdde Z ejd Gd d Z Gd de Z Gdde ZGdde ZGdde Zejd GddeZGddeZy)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_CHECKINGSequence) ServiceIDNceZdZdZy)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:eZdZUejZded<y)Mismatchr mismatched_idN)r r r attribr__annotations__rrrrr!s&twwyM9(rrceZdZdZy) DNSMismatchz0 No matching DNSPattern could be found. Nr rrrrr&rrceZdZdZy) SRVMismatchz0 No matching SRVPattern could be found. Nr rrrrr,rrrceZdZdZy) URIMismatchz0 No matching URIPattern could be found. Nr rrrrr2rrrceZdZdZy)IPAddressMismatchz6 No matching IPAddressPattern could be found. Nr rrrr!r!8rrr!)auto_exccFeZdZUdZej Zded<ddZy)VerificationErrorz/ Service identity verification failed. zSequence[Mismatch]errorsc"|jS)N)__repr__)selfs r__str__zVerificationError.__str__Fs}}rN)returnstr) r r r rrrr%rr)rrrr$r$>s!")F *rr$ceZdZdZy)CertificateErrorz Certificate contains invalid or unexpected data. This includes the case where s certificate contains no ``subjectAltName``\ s. Nr rrrr-r-Jsrr-)r __future__rtypingrrhazmatrrDeprecationWarningr srrrrr! Exceptionr$r-rrrr4s#*!  . d)))( ( (   yr