projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f58d45c
)
Fix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined
author
Antoine Pitrou
<solipsis@pitrou.net>
Fri, 17 Feb 2012 10:53:10 +0000
(11:53 +0100)
committer
Antoine Pitrou
<solipsis@pitrou.net>
Fri, 17 Feb 2012 10:53:10 +0000
(11:53 +0100)
Modules/_ssl.c
patch
|
blob
|
history
diff --git
a/Modules/_ssl.c
b/Modules/_ssl.c
index 97fc07f718f01d451b0dd493a6142bb1e5d7b06f..e25f354264612c2dee1e223940d2c2e0d47e6c99 100644
(file)
--- a/
Modules/_ssl.c
+++ b/
Modules/_ssl.c
@@
-2547,7
+2547,9
@@
PyInit__ssl(void)
PyModule_AddIntConstant(m, "OP_CIPHER_SERVER_PREFERENCE",
SSL_OP_CIPHER_SERVER_PREFERENCE);
PyModule_AddIntConstant(m, "OP_SINGLE_DH_USE", SSL_OP_SINGLE_DH_USE);
+#ifdef SSL_OP_SINGLE_ECDH_USE
PyModule_AddIntConstant(m, "OP_SINGLE_ECDH_USE", SSL_OP_SINGLE_ECDH_USE);
+#endif
#ifdef SSL_OP_NO_COMPRESSION
PyModule_AddIntConstant(m, "OP_NO_COMPRESSION",
SSL_OP_NO_COMPRESSION);