diff options
author | Xin LI <delphij@FreeBSD.org> | 2018-08-20 06:07:33 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2018-08-20 06:07:33 +0000 |
commit | c7f4d2332394d5600fe4e14c530ede36b0ff29b0 (patch) | |
tree | be0b200d6dc09373927db61d685acc61113c64c1 /sntp/crypto.c | |
parent | d14ac12f8738acac881f20b4d6244cfc22c68ead (diff) | |
download | src-vendor/ntp/4.2.8p12.tar.gz src-vendor/ntp/4.2.8p12.zip |
Vendor import of ntp-4.2.8p12.vendor/ntp/4.2.8p12
Diffstat (limited to 'sntp/crypto.c')
-rw-r--r-- | sntp/crypto.c | 9 |
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; |