diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-12-21 21:10:03 -0600 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2016-12-21 22:10:03 -0500 |
commit | 5685baa2121cb7e5abc99b4325701dad44cb5f30 (patch) | |
tree | d6b0f3b6c204f77d58922c5db39e8a135ee069ca /src | |
parent | e432562e771f7e190310a093e93a217871e35c90 (diff) | |
download | cryptography-5685baa2121cb7e5abc99b4325701dad44cb5f30.tar.gz cryptography-5685baa2121cb7e5abc99b4325701dad44cb5f30.tar.bz2 cryptography-5685baa2121cb7e5abc99b4325701dad44cb5f30.zip |
add openssl_version_number & doc openssl_version_text (#3329)
* add openssl_version_number & doc openssl_version_text
fixes #3315
* more docs + actually assert on the test...
* text
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/backend.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py index d2a9e6c9..a8d779ba 100644 --- a/src/cryptography/hazmat/backends/openssl/backend.py +++ b/src/cryptography/hazmat/backends/openssl/backend.py @@ -206,6 +206,9 @@ class Backend(object): self._lib.OpenSSL_version(self._lib.OPENSSL_VERSION) ).decode("ascii") + def openssl_version_number(self): + return self._lib.OpenSSL_version_num() + def create_hmac_ctx(self, key, algorithm): return _HMACContext(self, key, algorithm) |