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
c135fa42
Commit
c135fa42
authored
Feb 19, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix last remaining build issues of _ssl under old OpenSSLs. Patch by Vinay.
parent
7b77188e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+2
-1
Modules/_ssl.c
Modules/_ssl.c
+5
-0
No files found.
Lib/test/test_ssl.py
View file @
c135fa42
...
...
@@ -102,7 +102,8 @@ class BasicSocketTests(unittest.TestCase):
ssl
.
CERT_REQUIRED
ssl
.
OP_CIPHER_SERVER_PREFERENCE
ssl
.
OP_SINGLE_DH_USE
ssl
.
OP_SINGLE_ECDH_USE
if
ssl
.
HAS_ECDH
:
ssl
.
OP_SINGLE_ECDH_USE
if
ssl
.
OPENSSL_VERSION_INFO
>=
(
1
,
0
):
ssl
.
OP_NO_COMPRESSION
self
.
assertIn
(
ssl
.
HAS_SNI
,
{
True
,
False
})
...
...
Modules/_ssl.c
View file @
c135fa42
...
...
@@ -150,6 +150,11 @@ static unsigned int _ssl_locks_count = 0;
# define OPENSSL_NO_ECDH
#endif
/* compression support got added to OpenSSL in 0.9.8 */
#if OPENSSL_VERSION_NUMBER < 0x0090800fL && !defined(OPENSSL_NO_COMP)
# define OPENSSL_NO_COMP
#endif
typedef
struct
{
PyObject_HEAD
...
...
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