aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFedor Brunner <fedor.brunner@azet.sk>2014-02-20 15:38:40 +0100
committerFedor Brunner <fedor.brunner@azet.sk>2014-02-20 16:29:06 +0100
commit6567c5c7024d29f35875508de1f9979ca9149201 (patch)
tree7484d63e9a4518baf301f4f2fba9a0ed57de9390
parent0fd37212b802289fd207cd4cdca8e30459932db9 (diff)
downloadcryptography-6567c5c7024d29f35875508de1f9979ca9149201.tar.gz
cryptography-6567c5c7024d29f35875508de1f9979ca9149201.tar.bz2
cryptography-6567c5c7024d29f35875508de1f9979ca9149201.zip
Information about actually used cipher.
SSL_get_current_cipher SSL_CIPHER_get_name SSL_CIPHER_get_bits SSL_CIPHER_get_version
-rw-r--r--cryptography/hazmat/bindings/openssl/ssl.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/ssl.py b/cryptography/hazmat/bindings/openssl/ssl.py
index 038ea54b..234b17d5 100644
--- a/cryptography/hazmat/bindings/openssl/ssl.py
+++ b/cryptography/hazmat/bindings/openssl/ssl.py
@@ -140,6 +140,8 @@ typedef struct {
} SSL;
static const int TLSEXT_NAMETYPE_host_name;
+
+typedef ... SSL_CIPHER;
"""
FUNCTIONS = """
@@ -212,6 +214,13 @@ X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *);
/* SSL_SESSION */
void SSL_SESSION_free(SSL_SESSION *);
+
+/* Information about actually used cipher */
+const SSL_CIPHER *SSL_get_current_cipher(const SSL *);
+
+const char *SSL_CIPHER_get_name(const SSL_CIPHER *);
+int SSL_CIPHER_get_bits(const SSL_CIPHER *, int *);
+char *SSL_CIPHER_get_version(const SSL_CIPHER *);
"""
MACROS = """