Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.libnetworkcache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
slapos.libnetworkcache
Commits
8fd75343
Commit
8fd75343
authored
Aug 01, 2011
by
Lucas Carvalho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverting partially the previous commit.
Sorry, it should not be commited in the previous commit.
parent
c6f302b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
slapos/libconnection.py
slapos/libconnection.py
+5
-6
No files found.
slapos/libconnection.py
View file @
8fd75343
...
...
@@ -68,12 +68,11 @@ class HTTPSConnectionCertificateVerification(httplib.HTTPSConnection):
ca_certs
=
self
.
ssl_cert_path
,
cert_reqs
=
ssl
.
CERT_REQUIRED
)
cert
=
self
.
sock
.
getpeercert
()
if
cert
:
for
field
in
cert
[
'subject'
]:
if
field
[
0
][
0
]
==
'commonName'
:
certhost
=
field
[
0
][
1
]
if
certhost
!=
self
.
host
:
raise
ssl
.
SSLError
(
\
for
field
in
cert
[
'subject'
]:
if
field
[
0
][
0
]
==
'commonName'
:
certhost
=
field
[
0
][
1
]
if
certhost
!=
self
.
host
:
raise
ssl
.
SSLError
(
\
"Host name '%s' doesn't match with the certificate host '%s'"
%
(
self
.
host
,
certhost
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment