]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug 3471: add --enable-cmac support in configure
authorHarlan Stenn <stenn@ntp.org>
Thu, 15 Mar 2018 07:55:58 +0000 (07:55 +0000)
committerHarlan Stenn <stenn@ntp.org>
Thu, 15 Mar 2018 07:55:58 +0000 (07:55 +0000)
bk: 5aaa270eGSplaoTZs_c1frSbAH5sRQ

ChangeLog
configure.ac

index 7452d0f2bf304680115e09e6694464ff4c997664..dddcf3510284eb9b1ccdb0247a2e1276fcc9d433 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 ---
 
 * [Bug 3471] Check for openssl/[ch]mac.h.  HStenn.
+  - add --enable-cmac support in configure.  HStenn.
 ---
 (4.2.8p11) 2018/02/27 Released by Harlan Stenn <stenn@ntp.org>
 
index 4e7e06af6167cc53029314299f1c81353cfea903..2caa6c0db0e21cce2faee746cf03b8939268228e 100644 (file)
@@ -3014,6 +3014,24 @@ AC_MSG_RESULT([$ans])
 
 NTP_OPENSSL
 
+AC_MSG_CHECKING([if we want to include CMAC support])
+case "$ntp_openssl" in
+ yes)
+    AC_ARG_ENABLE(
+       [cmac],
+       AS_HELP_STRING(
+           [--enable-cmac],
+           [? include AES-128-CMAC support]
+           ),
+       [ntp_cmac=$enableval],
+       [ntp_cmac=yes]
+    )
+    ;;
+ *) [ntp_cmac=no]
+    ;;
+esac
+AC_MSG_RESULT([$ntp_cmac])
+
 NTP_CRYPTO_RAND
 
 # if we are using OpenSSL (--with-crypto), by default Autokey is enabled