summaryrefslogtreecommitdiff
path: root/tests/libntp/ssl_init.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2018-08-20 06:07:33 +0000
committerXin LI <delphij@FreeBSD.org>2018-08-20 06:07:33 +0000
commitc7f4d2332394d5600fe4e14c530ede36b0ff29b0 (patch)
treebe0b200d6dc09373927db61d685acc61113c64c1 /tests/libntp/ssl_init.c
parentd14ac12f8738acac881f20b4d6244cfc22c68ead (diff)
Notes
Diffstat (limited to 'tests/libntp/ssl_init.c')
-rw-r--r--tests/libntp/ssl_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/libntp/ssl_init.c b/tests/libntp/ssl_init.c
index 9a59a9b42548..69b395e051e9 100644
--- a/tests/libntp/ssl_init.c
+++ b/tests/libntp/ssl_init.c
@@ -59,7 +59,7 @@ test_SHA1KeyTypeWithDigestLength(void) {
void
test_CMACKeyTypeWithDigestLength(void) {
-#ifdef OPENSSL
+#if defined(OPENSSL) && defined(ENABLE_CMAC)
size_t digestLength;
size_t expected = TEST_CMAC_DIGEST_LENGTH;
@@ -67,7 +67,7 @@ test_CMACKeyTypeWithDigestLength(void) {
TEST_ASSERT_EQUAL(expected, digestLength);
/* OPENSSL */
#else
- TEST_IGNORE_MESSAGE("Skipping because OPENSSL isn't defined");
+ TEST_IGNORE_MESSAGE("Skipping because OPENSSL/CMAC isn't defined");
#endif
}
@@ -91,10 +91,10 @@ test_SHA1KeyName(void) {
void
test_CMACKeyName(void) {
-#ifdef OPENSSL
+#if defined(OPENSSL) && defined(ENABLE_CMAC)
TEST_ASSERT_EQUAL_STRING(CMAC, keytype_name(NID_cmac));
#else
- TEST_IGNORE_MESSAGE("Skipping because OPENSSL isn't defined");
+ TEST_IGNORE_MESSAGE("Skipping because OPENSSL/CMAC isn't defined");
#endif /* OPENSSL */
}