[Jython-checkins] jython: Declare ssl.HAS_* accordingly
darjus.loktevic
jython-checkins at python.org
Sun Nov 8 17:19:03 EST 2015
https://hg.python.org/jython/rev/c4e71b10bb23
changeset: 7792:c4e71b10bb23
user: Darjus Loktevic <darjus at gmail.com>
date: Mon Nov 09 09:18:54 2015 +1100
summary:
Declare ssl.HAS_* accordingly
files:
Lib/ssl.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Lib/ssl.py b/Lib/ssl.py
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -65,6 +65,11 @@
OP_ALL, OP_NO_SSLv2, OP_NO_SSLv3, OP_NO_TLSv1 = range(4)
+
+# https://docs.python.org/2/library/ssl.html#ssl.HAS_ALPN etc...
+HAS_ALPN, HAS_NPN, HAS_ECDH, HAS_SNI = False, False, True, True
+
+
_rfc2822_date_format = SimpleDateFormat("MMM dd HH:mm:ss yyyy z", Locale.US)
_rfc2822_date_format.setTimeZone(TimeZone.getTimeZone("GMT"))
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list