Mercurial > dovecot > core-2.2
diff src/lib-dcrypt/test-crypto.c @ 20576:6e584af6f758
lib-dcrypt: Skip checks if no backend found
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Thu, 04 Aug 2016 19:39:56 +0300 |
parents | 79fa3bdcfc95 |
children | e8a810c9c96c |
line wrap: on
line diff
--- a/src/lib-dcrypt/test-crypto.c Tue Aug 02 22:31:50 2016 +0300 +++ b/src/lib-dcrypt/test-crypto.c Thu Aug 04 19:39:56 2016 +0300 @@ -619,7 +619,10 @@ int main(void) { random_init(); - dcrypt_initialize("openssl", NULL, NULL); + if (!dcrypt_initialize(NULL, NULL, NULL)) { + i_error("No functional dcrypt backend found - skipping tests"); + return 0; + } static void (*test_functions[])(void) = { test_cipher_test_vectors,