Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Kirill Smelkov
cpython
Commits
c21a81bf
Commit
c21a81bf
authored
Oct 28, 2011
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Plain Diff
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
parents
608cab54
5a8f03f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+4
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_ssl.py
View file @
c21a81bf
...
...
@@ -1405,7 +1405,8 @@ else:
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_SSLv3
,
True
,
ssl
.
CERT_REQUIRED
)
if
hasattr
(
ssl
,
'PROTOCOL_SSLv2'
):
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_SSLv2
,
False
)
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_SSLv23
,
False
)
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_SSLv23
,
False
,
client_options
=
ssl
.
OP_NO_SSLv3
)
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_TLSv1
,
False
)
if
no_sslv2_implies_sslv3_hello
():
# No SSLv2 => client will use an SSLv3 hello on recent OpenSSLs
...
...
@@ -1423,7 +1424,8 @@ else:
if
hasattr
(
ssl
,
'PROTOCOL_SSLv2'
):
try_protocol_combo
(
ssl
.
PROTOCOL_TLSv1
,
ssl
.
PROTOCOL_SSLv2
,
False
)
try_protocol_combo
(
ssl
.
PROTOCOL_TLSv1
,
ssl
.
PROTOCOL_SSLv3
,
False
)
try_protocol_combo
(
ssl
.
PROTOCOL_TLSv1
,
ssl
.
PROTOCOL_SSLv23
,
False
)
try_protocol_combo
(
ssl
.
PROTOCOL_TLSv1
,
ssl
.
PROTOCOL_SSLv23
,
False
,
client_options
=
ssl
.
OP_NO_TLSv1
)
def
test_starttls
(
self
):
"""Switching from clear text to encrypted and back again."""
...
...
Misc/NEWS
View file @
c21a81bf
...
...
@@ -1500,6 +1500,8 @@ Extension Modules
Tests
-----
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
- Re-enable lib2to3'
s
test_parser
.
py
tests
,
though
with
an
expected
failure
(
see
issue
13125
).
...
...
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