mirror of
https://github.com/python/cpython
synced 2026-09-29 08:40:29 +03:00
Fix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined
This commit is contained in:
parent
f58d45c649
commit
e9fccb360f
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue