/usr/lib/python2.6/site-packages/urllib3/packages/ssl_match_hostname
NameSizeModeActions
_implementation.py37780644editdlrm
_implementation.pyc29340644editdlrm
__init__.py4600644editdlrm
__init__.pyc5110644editdlrm
Edit: /usr/lib/python2.6/site-packages/urllib3/packages/ssl_match_hostname/_implementation.pyc (2934B)
Ñò ;vVc@sGdZddkZdZdefd„ƒYZdd„Zd„ZdS( sJThe match_hostname() function from Python 3.3.3, essential when using SSL.iÿÿÿÿNs3.4.0.2tCertificateErrorcBseZRS((t__name__t __module__(((sT/tmp/pip-build-cD3xZi/urllib3/urllib3/packages/ssl_match_hostname/_implementation.pyR sic Cs]g}|ptS|idƒ}|d}|d}|idƒ}||jotdt|ƒƒ‚n|p|iƒ|iƒjS|djo|idƒn]|idƒp|idƒo|iti |ƒƒn#|iti |ƒi dd ƒƒx$|D]}|iti |ƒƒq Wti d d i |ƒd ti ƒ} | i|ƒS( shMatching according to RFC 6125, section 6.4.3 http://tools.ietf.org/html/rfc6125#section-6.4.3 t.iit*s,too many wildcards in certificate DNS name: s[^.]+sxn--s\*s[^.]*s\As\.s\Z(tFalsetsplittcountRtreprtlowertappendt startswithtretescapetreplacetcompiletjoint IGNORECASEtmatch( tdnthostnamet max_wildcardstpatstpartstleftmostt remaindert wildcardstfragtpat((sT/tmp/pip-build-cD3xZi/urllib3/urllib3/packages/ssl_match_hostname/_implementation.pyt_dnsname_matchs,     "&c Csk|ptdƒ‚ng}|idd ƒ}xG|D]?\}}|djo&t||ƒodS|i|ƒq6q6W|pkxh|iddƒD]P}xG|D]?\}}|djo&t||ƒodS|i|ƒq q Wq“Wnt|ƒdjo,td|d itt|ƒƒfƒ‚n>t|ƒdjotd ||d fƒ‚n td ƒ‚dS(s)Verify 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. sempty or no certificatetsubjectAltNametDNSNtsubjectt commonNameis&hostname %r doesn't match either of %ss, shostname %r doesn't match %ris=no appropriate commonName or subjectAltName fields were found((( t ValueErrortgetRR tlenRRtmapR(tcertRtdnsnamestsantkeytvaluetsub((sT/tmp/pip-build-cD3xZi/urllib3/urllib3/packages/ssl_match_hostname/_implementation.pytmatch_hostnameCs4    &(t__doc__R t __version__R"RRR,(((sT/tmp/pip-build-cD3xZi/urllib3/urllib3/packages/ssl_match_hostname/_implementation.pyts   5