diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-05 21:35:07 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-05 21:35:07 (GMT) |
commit | f9de534c218cfdab5b4114e6ed535c940ae6b8b5 (patch) | |
tree | 176bd640ca6f0c8d17f0a2644fcd734bc44d8580 /Doc | |
parent | fce1d31d4710c0280e2b646f72174de79a713430 (diff) | |
download | cpython-f9de534c218cfdab5b4114e6ed535c940ae6b8b5.zip cpython-f9de534c218cfdab5b4114e6ed535c940ae6b8b5.tar.gz cpython-f9de534c218cfdab5b4114e6ed535c940ae6b8b5.tar.bz2 |
Issue #8321: Give access to OpenSSL version numbers from the `ssl` module,
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO`
and `ssl.OPENSSL_VERSION_NUMBER`.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/ssl.rst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index a4f911f..5d8ca3c 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -240,6 +240,36 @@ Functions, Constants, and Exceptions modern version, and probably the best choice for maximum protection, if both sides can speak it. +.. data:: OPENSSL_VERSION + + The version string of the OpenSSL library loaded by the interpreter:: + + >>> ssl.OPENSSL_VERSION + 'OpenSSL 0.9.8k 25 Mar 2009' + + .. versionadded:: 2.7 + +.. data:: OPENSSL_VERSION_INFO + + A tuple of five integers representing version information about the + OpenSSL library:: + + >>> ssl.OPENSSL_VERSION_INFO + (0, 9, 8, 11, 15) + + .. versionadded:: 2.7 + +.. data:: OPENSSL_VERSION_NUMBER + + The raw version number of the OpenSSL library, as a single integer:: + + >>> ssl.OPENSSL_VERSION_NUMBER + 9470143L + >>> hex(ssl.OPENSSL_VERSION_NUMBER) + '0x9080bfL' + + .. versionadded:: 2.7 + SSLSocket Objects ----------------- |