/usr/lib/python2.6/site-packages/urllib3/packages/ssl_match_hostname
Edit: /usr/lib/python2.6/site-packages/urllib3/packages/ssl_match_hostname/_implementation.pyc (2934B)
Ñò
;vVc @ sG d Z d d k Z d Z d e f d „ ƒ YZ d d „ Z d „ Z d S( sJ The match_hostname() function from Python 3.3.3, essential when using SSL.iÿÿÿÿNs 3.4.0.2t CertificateErrorc B s e Z RS( ( t __name__t
__module__( ( ( sT /tmp/pip-build-cD3xZi/urllib3/urllib3/packages/ssl_match_hostname/_implementation.pyR
s i c
C s] g } | p t S| i d ƒ } | d } | d } | i d ƒ } | | j o t d t | ƒ ƒ ‚ n | p | i ƒ | i ƒ j S| d j o | i d ƒ n] | i d ƒ p | i d ƒ o | i t i | ƒ ƒ n# | i t i | ƒ i
d d ƒ ƒ x$ | D] } | i t i | ƒ ƒ q
Wt i d
d i | ƒ d t i
ƒ } | i | ƒ S(
sh Matching according to RFC 6125, section 6.4.3
http://tools.ietf.org/html/rfc6125#section-6.4.3
t .i i t *s, too many wildcards in certificate DNS name: s [^.]+s xn--s \*s [^.]*s \As \.s \Z( t Falset splitt countR t reprt lowert appendt
startswitht ret escapet replacet compilet joint
IGNORECASEt match(
t dnt hostnamet
max_wildcardst patst partst leftmostt remaindert wildcardst fragt pat( ( sT /tmp/pip-build-cD3xZi/urllib3/urllib3/packages/ssl_match_hostname/_implementation.pyt _dnsname_match s,
" &c C sk | p t d ƒ ‚ n g } | i d d
ƒ } xG | D]? \ } } | d j o&