SILENT KILLERPanel

Current Path: > > opt > alt > python27 > lib > > python2.7 > site-packages > raven > utils


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python27/lib//python2.7/site-packages/raven/utils

NameTypeSizeLast ModifiedActions
serializer Directory - -
__init__.py File 4822 bytes October 29 2017 17:41:19.
__init__.pyc File 6026 bytes October 18 2019 13:53:42.
compat.py File 5676 bytes October 29 2017 17:41:19.
compat.pyc File 7579 bytes October 18 2019 13:53:42.
conf.py File 2278 bytes October 29 2017 17:41:19.
conf.pyc File 2342 bytes October 18 2019 13:53:42.
encoding.py File 3303 bytes October 29 2017 17:41:19.
encoding.pyc File 3201 bytes October 18 2019 13:53:42.
http.py File 2000 bytes October 29 2017 17:41:19.
http.pyc File 2985 bytes October 18 2019 13:53:42.
imports.py File 404 bytes October 29 2017 17:41:19.
imports.pyc File 682 bytes October 18 2019 13:53:42.
json.py File 2605 bytes October 29 2017 17:41:19.
json.pyc File 5431 bytes October 18 2019 13:53:42.
ssl_match_hostname.py File 3598 bytes October 29 2017 17:41:19.
ssl_match_hostname.pyc File 2920 bytes October 18 2019 13:53:42.
stacks.py File 10041 bytes October 29 2017 17:41:19.
stacks.pyc File 7962 bytes October 18 2019 13:53:42.
testutils.py File 697 bytes October 29 2017 17:41:19.
testutils.pyc File 1693 bytes October 18 2019 13:53:42.
transaction.py File 1088 bytes October 29 2017 17:41:19.
transaction.pyc File 3059 bytes October 18 2019 13:53:42.
urlparse.py File 476 bytes October 29 2017 17:41:19.
urlparse.pyc File 915 bytes October 18 2019 13:53:42.
wsgi.py File 3731 bytes October 29 2017 17:41:19.
wsgi.pyc File 4305 bytes October 18 2019 13:53:42.

Reading File: //opt/alt/python27/lib//python2.7/site-packages/raven/utils/ssl_match_hostname.pyc

�
��Yc@@sWdZddlmZddlZdZdefd��YZdd�Zd	�ZdS(
sHThe match_hostname() function from Python 3.2, essential when using SSL.i(tabsolute_importNs3.2.2tCertificateErrorcB@seZRS((t__name__t
__module__(((sO/opt/alt/python27/lib/python2.7/site-packages/raven/utils/ssl_match_hostname.pyR
sic	C@sLg}|stS|jd�}|d}|jd�}||kr]tdt|���n|sy|j�|j�kS|dkr�|jd�nY|jd�s�|jd�r�|jtj	|��n"|jtj	|�j
dd��x(|d	D]}|jtj	|��q�Wtjd
dj|�dtj
�}|j|�S(
shMatching according to RFC 6125, section 6.4.3

    http://tools.ietf.org/html/rfc6125#section-6.4.3
    t.it*s,too many wildcards in certificate DNS name: s[^.]+sxn--s\*s[^.]*is\As\.s\Z(tFalsetsplittcountRtreprtlowertappendt
startswithtretescapetreplacetcompiletjoint
IGNORECASEtmatch(	tdnthostnamet
max_wildcardstpatstpartstleftmostt	wildcardstfragtpat((sO/opt/alt/python27/lib/python2.7/site-packages/raven/utils/ssl_match_hostname.pyt_dnsname_matchs(
"&cC@s[|std��ng}|jdd
�}xC|D];\}}|dkr4t||�r_dS|j|�q4q4W|s�xc|jdd�D]L}xC|D];\}}|dkr�t||�r�dS|j|�q�q�Wq�Wnt|�dkrtd|d	jtt|��f��n;t|�dkrKtd
||df��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
ValueErrortgetRRtlenRRtmapR	(tcertRtdnsnamestsantkeytvaluetsub((sO/opt/alt/python27/lib/python2.7/site-packages/raven/utils/ssl_match_hostname.pytmatch_hostname@s2%(	t__doc__t
__future__RR
t__version__R"RRR,(((sO/opt/alt/python27/lib/python2.7/site-packages/raven/utils/ssl_match_hostname.pyt<module>s2

SILENT KILLER Tool