$85 GRAYBYTE WORDPRESS FILE MANAGER $11

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python27/lib/python2.7/site-packages/raven/utils/

HOME
Current 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


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Mar 2024 10.46 AM
root / linksafe
0755
serializer
--
21 Mar 2024 10.46 AM
root / linksafe
0755
__init__.py
4.709 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
__init__.pyc
5.885 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
compat.py
5.543 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
compat.pyc
7.401 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
conf.py
2.225 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
conf.pyc
2.287 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
encoding.py
3.226 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
encoding.pyc
3.126 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
http.py
1.953 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
http.pyc
2.915 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
imports.py
0.395 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
imports.pyc
0.666 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
json.py
2.544 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
json.pyc
5.304 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
ssl_match_hostname.py
3.514 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
ssl_match_hostname.pyc
2.852 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
stacks.py
9.806 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
stacks.pyc
7.775 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
testutils.py
0.681 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
testutils.pyc
1.653 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
transaction.py
1.063 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
transaction.pyc
2.987 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
urlparse.py
0.465 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
urlparse.pyc
0.894 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
wsgi.py
3.644 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
wsgi.pyc
4.204 KB
18 Oct 2019 1.53 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF