diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-02-17 10:53:10 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-02-17 10:53:10 (GMT) |
commit | e9fccb360f872ffdac1d3c2937f8e4c995ab1149 (patch) | |
tree | aa38fb63ffb86efa9f954e14e6d2be51a14c8f39 /Modules | |
parent | f58d45c649c1738870ac85887599850fd2bbf157 (diff) | |
download | cpython-e9fccb360f872ffdac1d3c2937f8e4c995ab1149.zip cpython-e9fccb360f872ffdac1d3c2937f8e4c995ab1149.tar.gz cpython-e9fccb360f872ffdac1d3c2937f8e4c995ab1149.tar.bz2 |
Fix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 97fc07f..e25f354 100644 --- 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); |