aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard J. Moore <rich@kde.org>2015-01-11 12:06:36 +0000
committerRichard J. Moore <rich@kde.org>2015-01-11 12:06:36 +0000
commit62237964feb2c542723fe6f586852568091ce3a0 (patch)
treeaa52a503f0235390da5242a3b227c62c3aaeda84 /src
parentdc8510046fd760a291ba1a3f1ac84f0832bb9f43 (diff)
downloadcryptography-62237964feb2c542723fe6f586852568091ce3a0.tar.gz
cryptography-62237964feb2c542723fe6f586852568091ce3a0.tar.bz2
cryptography-62237964feb2c542723fe6f586852568091ce3a0.zip
Add support for querying the negotiated TLS/SSL version.
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/bindings/openssl/ssl.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/ssl.py b/src/cryptography/hazmat/bindings/openssl/ssl.py
index 91ae36ac..bf627139 100644
--- a/src/cryptography/hazmat/bindings/openssl/ssl.py
+++ b/src/cryptography/hazmat/bindings/openssl/ssl.py
@@ -302,6 +302,7 @@ SSL_CTX *SSL_CTX_new(SSL_METHOD *);
long SSL_CTX_get_timeout(const SSL_CTX *);
const SSL_CIPHER *SSL_get_current_cipher(const SSL *);
+int SSL_version(const SSL *);
/* SNI APIs were introduced in OpenSSL 1.0.0. To continue to support
* earlier versions some special handling of these is necessary.