aboutsummaryrefslogtreecommitdiff
path: root/sntp/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'sntp/crypto.c')
-rw-r--r--sntp/crypto.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sntp/crypto.c b/sntp/crypto.c
index ce5d136fcbf1..be94ed51d2ef 100644
--- a/sntp/crypto.c
+++ b/sntp/crypto.c
@@ -12,13 +12,6 @@
#include "isc/string.h"
#include "ntp_md5.h"
-/* HMS: We may not have OpenSSL, but we have our own AES-128-CMAC */
-#define CMAC "AES128CMAC"
-#ifdef OPENSSL
-# include "openssl/cmac.h"
-# define AES_128_KEY_SIZE 16
-#endif /* OPENSSL */
-
#ifndef EVP_MAX_MD_SIZE
# define EVP_MAX_MD_SIZE 32
#endif
@@ -45,7 +38,7 @@ compute_mac(
INIT_SSL();
key_type = keytype_from_text(macname, NULL);
-#ifdef OPENSSL
+#if defined(OPENSSL) && defined(ENABLE_CMAC)
/* Check if CMAC key type specific code required */
if (key_type == NID_cmac) {
CMAC_CTX * ctx = NULL;