|
Lines 1-30
Link Here
|
| 1 |
--- src/cryptography/hazmat/bindings/openssl/ssl.py.orig 2015-01-16 13:26:59 UTC |
1 |
--- src/cryptography/hazmat/bindings/openssl/ssl.py.orig 2015-04-21 08:58:58 UTC |
| 2 |
+++ src/cryptography/hazmat/bindings/openssl/ssl.py |
2 |
+++ src/cryptography/hazmat/bindings/openssl/ssl.py |
| 3 |
@@ -189,10 +189,6 @@ int SSL_shutdown(SSL *); |
3 |
@@ -526,7 +526,7 @@ static const long Cryptography_HAS_NEXTP |
| 4 |
const char *SSL_get_cipher_list(const SSL *, int); |
|
|
| 5 |
Cryptography_STACK_OF_SSL_CIPHER *SSL_get_ciphers(const SSL *); |
| 6 |
|
| 7 |
-const COMP_METHOD *SSL_get_current_compression(SSL *); |
| 8 |
-const COMP_METHOD *SSL_get_current_expansion(SSL *); |
| 9 |
-const char *SSL_COMP_get_name(const COMP_METHOD *); |
| 10 |
- |
| 11 |
/* context */ |
| 12 |
void SSL_CTX_free(SSL_CTX *); |
| 13 |
long SSL_CTX_set_timeout(SSL_CTX *, long); |
| 14 |
@@ -415,6 +411,16 @@ static const long Cryptography_HAS_RELEA |
| 15 |
const long SSL_MODE_RELEASE_BUFFERS = 0; |
| 16 |
#endif |
4 |
#endif |
| 17 |
|
5 |
|
| 18 |
+#ifndef OPENSSL_NO_COMP |
6 |
/* ALPN was added in OpenSSL 1.0.2. */ |
| 19 |
+const COMP_METHOD *SSL_get_current_compression(SSL *s); |
7 |
-#if OPENSSL_VERSION_NUMBER < 0x10002001L |
| 20 |
+const COMP_METHOD *SSL_get_current_expansion(SSL *s); |
8 |
+#if OPENSSL_VERSION_NUMBER < 0x10002001L && !defined(LIBRESSL_VERSION_NUMBER) |
| 21 |
+const char *SSL_COMP_get_name(const COMP_METHOD *comp); |
9 |
int (*SSL_CTX_set_alpn_protos)(SSL_CTX *, |
| 22 |
+#else |
10 |
const unsigned char *, |
| 23 |
+const void *SSL_get_current_compression(SSL *s); |
11 |
unsigned) = NULL; |
| 24 |
+const void *SSL_get_current_expansion(SSL *s); |
|
|
| 25 |
+const char *SSL_COMP_get_name(const void *comp); |
| 26 |
+#endif |
| 27 |
+ |
| 28 |
#ifdef SSL_OP_NO_COMPRESSION |
| 29 |
static const long Cryptography_HAS_OP_NO_COMPRESSION = 1; |
| 30 |
#else |