summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/idevice.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/idevice.c b/src/idevice.c
index 913038e..d1f13cb 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -51,6 +51,14 @@
51#include "common/debug.h" 51#include "common/debug.h"
52 52
53#ifdef HAVE_OPENSSL 53#ifdef HAVE_OPENSSL
54
55#if OPENSSL_VERSION_NUMBER < 0x10002000L
56static void SSL_COMP_free_compression_methods(void)
57{
58 sk_SSL_COMP_free(SSL_COMP_get_compression_methods());
59}
60#endif
61
54static mutex_t *mutex_buf = NULL; 62static mutex_t *mutex_buf = NULL;
55static void locking_function(int mode, int n, const char* file, int line) 63static void locking_function(int mode, int n, const char* file, int line)
56{ 64{
@@ -100,7 +108,7 @@ static void internal_idevice_deinit(void)
100 108
101 EVP_cleanup(); 109 EVP_cleanup();
102 CRYPTO_cleanup_all_ex_data(); 110 CRYPTO_cleanup_all_ex_data();
103 sk_SSL_COMP_free(SSL_COMP_get_compression_methods()); 111 SSL_COMP_free_compression_methods();
104#ifdef HAVE_ERR_REMOVE_THREAD_STATE 112#ifdef HAVE_ERR_REMOVE_THREAD_STATE
105 ERR_remove_thread_state(NULL); 113 ERR_remove_thread_state(NULL);
106#else 114#else