From: Martin Willi Date: Thu, 20 Jun 2013 08:06:07 +0000 (+0200) Subject: leak-detective: (re-)whitelist some OpenSSL functions X-Git-Tag: 5.1.0dr1~97^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=092550b03ad4e1582c84e2b7bf897ace39e0d476;p=thirdparty%2Fstrongswan.git leak-detective: (re-)whitelist some OpenSSL functions Some static allocations in plugins won't get freed, because in the test case process the plugins are not destroyed. If a plugin would clean up allocations done while just using the plugin, these show up as leak in the child process, letting tests fail. --- diff --git a/src/libstrongswan/utils/leak_detective.c b/src/libstrongswan/utils/leak_detective.c index a245163527..9a4f07e595 100644 --- a/src/libstrongswan/utils/leak_detective.c +++ b/src/libstrongswan/utils/leak_detective.c @@ -483,6 +483,11 @@ char *whitelist[] = { "gcry_check_version", "gcry_randomize", "gcry_create_nonce", + /* OpenSSL: These are needed for unit-tests only, the openssl plugin + * does properly clean up any memory during destroy(). */ + "ECDSA_do_sign_ex", + "ECDSA_verify", + "RSA_new_method", /* NSPR */ "PR_CallOnce", /* libapr */