aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-06-27 17:44:57 +0200
committerTobias Brunner <tobias@strongswan.org>2016-06-29 11:09:38 +0200
commitc1410cb045169c47c59459673219f2e7d878c22c (patch)
treeaeaf501a12178f4bbb4123bd5c81a43b61cdcb0d
parentfedec33f5a1a3a7a02ddfebc650fb44190faf1bc (diff)
downloadstrongswan-c1410cb045169c47c59459673219f2e7d878c22c.tar.bz2
strongswan-c1410cb045169c47c59459673219f2e7d878c22c.tar.xz
openssl: Whitelist OPENSSL_init_crypto() and others in leak detective
Lots of static data is allocated in this function, which isn't freed until the library is unloaded (we can't call OPENSSL_cleanup() as initialization would fail when calling it again later). When enabling the leak detective the test runner eventually crashes as all the data allocated during initialization has an invalid size when freed after leak detective has been unloaded.
-rw-r--r--src/libstrongswan/utils/leak_detective.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/leak_detective.c b/src/libstrongswan/utils/leak_detective.c
index a0bdae715..aeadc0cb3 100644
--- a/src/libstrongswan/utils/leak_detective.c
+++ b/src/libstrongswan/utils/leak_detective.c
@@ -564,6 +564,10 @@ char *whitelist[] = {
"ECDSA_do_sign_ex",
"ECDSA_verify",
"RSA_new_method",
+ /* OpenSSL 1.1.0 does not cleanup anymore until the library is unloaded */
+ "OPENSSL_init_crypto",
+ "CRYPTO_THREAD_lock_new",
+ "ERR_add_error_data",
/* OpenSSL libssl */
"SSL_COMP_get_compression_methods",
/* NSPR */