summaryrefslogtreecommitdiff
path: root/src/lib/tests
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-01-26 17:48:38 +0100
committerSander Vrijders <sander@ouroboros.rocks>2026-01-30 07:56:37 +0100
commite9fb0eb1130a8efacab3add17f524197a9044a88 (patch)
tree65f179299979b4fd61c842e59d5f8e48072514e6 /src/lib/tests
parent0ca48453a067c7862f0bb6b85f152da826f59af7 (diff)
downloadouroboros-e9fb0eb1130a8efacab3add17f524197a9044a88.tar.gz
ouroboros-e9fb0eb1130a8efacab3add17f524197a9044a88.zip
lib: Fix crypt test and secure memory initialization
The crypt_test had a HAVE_OPENSSL guard missing and was trying to execute tests that required OpenSSL without it being installed. The SECMEM values need to be set by CMake without OpenSSL installed. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/tests')
-rw-r--r--src/lib/tests/crypt_test.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/tests/crypt_test.c b/src/lib/tests/crypt_test.c
index e1232b8c..e250ad2a 100644
--- a/src/lib/tests/crypt_test.c
+++ b/src/lib/tests/crypt_test.c
@@ -444,11 +444,16 @@ int crypt_test(int argc,
ret |= test_crypt_create_destroy();
ret |= test_encrypt_decrypt_all();
- ret |= test_key_rotation();
- ret |= test_key_phase_bit();
#ifdef HAVE_OPENSSL
ret |= test_cipher_nid_values();
ret |= test_md_nid_values();
+ ret |= test_key_rotation();
+ ret |= test_key_phase_bit();
+#else
+ (void) test_key_rotation;
+ (void) test_key_phase_bit;
+
+ return TEST_RC_SKIP;
#endif
return ret;
}