summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-19 12:27:11 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-19 12:27:11 (GMT)
commit6db4944cc57804391b554d96f3400944779617f0 (patch)
treea364d79be7e165d959069b3c099416f351e33458 /Modules/_ssl.c
parentbfaa79a982f1aadfe2aa4e3fdc4ff75153286503 (diff)
downloadcpython-6db4944cc57804391b554d96f3400944779617f0.zip
cpython-6db4944cc57804391b554d96f3400944779617f0.tar.gz
cpython-6db4944cc57804391b554d96f3400944779617f0.tar.bz2
Issue #13635: Add ssl.OP_CIPHER_SERVER_PREFERENCE, so that SSL servers
choose the cipher based on their own preferences, rather than on the client's.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 5772d90..0f3d2c1 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2450,6 +2450,8 @@ PyInit__ssl(void)
PyModule_AddIntConstant(m, "OP_NO_SSLv2", SSL_OP_NO_SSLv2);
PyModule_AddIntConstant(m, "OP_NO_SSLv3", SSL_OP_NO_SSLv3);
PyModule_AddIntConstant(m, "OP_NO_TLSv1", SSL_OP_NO_TLSv1);
+ PyModule_AddIntConstant(m, "OP_CIPHER_SERVER_PREFERENCE",
+ SSL_OP_CIPHER_SERVER_PREFERENCE);
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
r = Py_True;