diff options
author | Sumit Bose <sbose@redhat.com> | 2015-06-22 16:36:36 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-07-31 09:51:35 +0200 |
commit | 0d5bb38364a6976e9c85d6349aa13a04d181a090 (patch) | |
tree | f29b40d49066f5f818b54d24da77d1f611a9f039 /src/tests/cmocka | |
parent | b698a04b37ad33e3de5bee82edc6e0e7b5ba2cfe (diff) | |
download | sssd-0d5bb38364a6976e9c85d6349aa13a04d181a090.tar.gz sssd-0d5bb38364a6976e9c85d6349aa13a04d181a090.tar.xz sssd-0d5bb38364a6976e9c85d6349aa13a04d181a090.zip |
utils: add NSS version of cert utils
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/tests/cmocka')
-rw-r--r-- | src/tests/cmocka/test_cert_utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/cmocka/test_cert_utils.c b/src/tests/cmocka/test_cert_utils.c index 5bcbafb27..8063b1a65 100644 --- a/src/tests/cmocka/test_cert_utils.c +++ b/src/tests/cmocka/test_cert_utils.c @@ -23,7 +23,9 @@ */ #include <popt.h> +#ifdef HAVE_LIBCRYPTO #include <openssl/objects.h> +#endif #include "util/cert.h" #include "tests/cmocka/common_mock.h" @@ -349,7 +351,9 @@ int main(int argc, const char *argv[]) ret = cmocka_run_group_tests(tests, NULL, NULL); +#ifdef HAVE_LIBCRYPTO CRYPTO_cleanup_all_ex_data(); /* to make valgrind happy */ +#endif #ifdef HAVE_NSS /* Cleanup NSS and NSPR to make valgrind happy. */ |