[Python-checkins] cpython: Fix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined

antoine.pitrou python-checkins at python.org
Fri Feb 17 11:56:24 CET 2012


http://hg.python.org/cpython/rev/c1a07c8092f7
changeset:   74995:c1a07c8092f7
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Fri Feb 17 11:53:10 2012 +0100
summary:
  Fix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined

files:
  Modules/_ssl.c |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2547,7 +2547,9 @@
     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);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list