]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
leak-detective: (re-)whitelist some OpenSSL functions
authorMartin Willi <martin@revosec.ch>
Thu, 20 Jun 2013 08:06:07 +0000 (10:06 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 21 Jun 2013 08:53:23 +0000 (10:53 +0200)
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.

src/libstrongswan/utils/leak_detective.c

index a245163527ff3ef37f77e68267260635d10a289a..9a4f07e595b39242caa0b632467eb6ed4e2a600e 100644 (file)
@@ -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 */