2bi~tSrSSKrSSKrSSKrSr"SS\5rS SjrSr Sr S r g!\a SrN&f=f) zJThe match_hostname() function from Python 3.3.3, essential when using SSL.Nz3.5.0.1c\rSrSrSrg)CertificateErrorN)__name__ __module__ __qualname____firstlineno____static_attributes__rڝ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.pyrrsr rc&/nU(dgURS5nUSnUSSnURS5nXr:a[S[U5-5eU(d!UR 5UR 5:H$US:XaUR S5 OUR S 5(dUR S 5(a&UR [R"U55 O5UR [R"U5RS S 55 UH(nUR [R"U55 M* [R"S S RU5-S-[R5n U RU5$)z`Matching according to RFC 6125, section 6.4.3 http://tools.ietf.org/html/rfc6125#section-6.4.3 F.rN*z,too many wildcards in certificate DNS name: z[^.]+zxn--z\*z[^.]*z\Az\.z\Z)splitcountrreprlowerappend startswithreescapereplacecompilejoin IGNORECASEmatch) dnhostname max_wildcardspatspartsleftmost remainder wildcardsfragpats r _dnsname_matchr)sI D  HHTNEQxHab Is#I  :T"X E  xxzX^^--- 3 G   V $ $(;(;F(C(C BIIh'( BIIh'//w?@ BIIdO$ **UUZZ--5r}} EC 99X r cn[U[5(a[RS:a [ USSS9nU$)N)asciistrict)encodingerrors) isinstancestrsys version_infounicode)objs r _to_unicoder6Os/#s 0 04 7cGH= Jr cd[R"[U5R55nX!:H$)z|Exact matching of IP addresses. RFC 6125 explicitly doesn't define an algorithm for this (section 1.7.2 - "Out of Scope"). ) ipaddress ip_addressr6rstrip)ipnamehost_ipips r _ipaddress_matchr>Vs*   k&188: ;B =r c FU(d [S5e[R"[U55n/nUR SS5nUHaupVUS:Xa(Uc[Xa5(a gURU5 M3US:XdM;Ub[Xb5(a gURU5 Mc U(dPUR SS5H:nUH1upVUS:XdM [Xa5(a gURU5 M3 M< [U5S :a0[S U<S S R[[U55<35e[U5S :Xa[S U<S US<35e[S5e![[4a SnGNV[ a [cSnGNkef=f)aVerify that *cert* (in decoded format as returned by SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125 rules are followed, but IP addresses are not accepted for *hostname*. CertificateError is raised on failure. On success, the function returns nothing. ztempty or no certificate, match_hostname needs a SSL socket or SSL context with either CERT_OPTIONAL or CERT_REQUIREDNsubjectAltNamerDNSz IP Addresssubject commonNamerz hostname z doesn't match either of z, z doesn't match rz=no appropriate commonName or subjectAltName fields were found) ValueErrorr8r9r6 UnicodeErrorAttributeErrorgetr)rr>lenrrmapr)certr r<dnsnamessankeyvaluesubs r match_hostnamerPbs  -  &&{8'<=H ((#R (C  %<>%#B#B OOE " L "'7'G'G OOE " 88Ir*C! ,&%e66OOE* "+ 8}q,4diiD(@S6T V   X! 8TU;WXX K  U * %    G  sE44F  F F )r) __doc__rr2r8 ImportError __version__rDrr)r6r>rPrr r rTsWP    z 3l = gIs ,77