Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9fccb3

Browse files
committed
Fix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined
1 parent f58d45c commit e9fccb3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Modules/_ssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,9 @@ PyInit__ssl(void)
25472547
PyModule_AddIntConstant(m, "OP_CIPHER_SERVER_PREFERENCE",
25482548
SSL_OP_CIPHER_SERVER_PREFERENCE);
25492549
PyModule_AddIntConstant(m, "OP_SINGLE_DH_USE", SSL_OP_SINGLE_DH_USE);
2550+
#ifdef SSL_OP_SINGLE_ECDH_USE
25502551
PyModule_AddIntConstant(m, "OP_SINGLE_ECDH_USE", SSL_OP_SINGLE_ECDH_USE);
2552+
#endif
25512553
#ifdef SSL_OP_NO_COMPRESSION
25522554
PyModule_AddIntConstant(m, "OP_NO_COMPRESSION",
25532555
SSL_OP_NO_COMPRESSION);

0 commit comments

Comments
 (0)