From 1dac4440e24a3290309387d9d384dbd6fcf74826 Mon Sep 17 00:00:00 2001 From: PhiBo Date: Sun, 11 May 2014 21:39:40 +0200 Subject: Function to get current compression and expansion --- cryptography/hazmat/bindings/openssl/ssl.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cryptography/hazmat/bindings/openssl/ssl.py b/cryptography/hazmat/bindings/openssl/ssl.py index cd8fa1cf..94b96d98 100644 --- a/cryptography/hazmat/bindings/openssl/ssl.py +++ b/cryptography/hazmat/bindings/openssl/ssl.py @@ -159,6 +159,7 @@ static const long TLSEXT_NAMETYPE_host_name; typedef ... SSL_CIPHER; typedef ... Cryptography_STACK_OF_SSL_CIPHER; +typedef ... COMP_METHOD; """ FUNCTIONS = """ @@ -198,6 +199,10 @@ int SSL_shutdown(SSL *); const char *SSL_get_cipher_list(const SSL *, int); Cryptography_STACK_OF_SSL_CIPHER *SSL_get_ciphers(const SSL *); +const COMP_METHOD *SSL_get_current_compression(SSL *); +const COMP_METHOD *SSL_get_current_expansion(SSL *); +const char *SSL_COMP_get_name(const COMP_METHOD *); + /* context */ void SSL_CTX_free(SSL_CTX *); long SSL_CTX_set_timeout(SSL_CTX *, long); -- cgit v1.2.3