summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-30 00:25:04 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-30 00:25:04 (EDT)
commitc8185dcb4d1952a5d26e1b228d88ca737d41021b (patch)
tree277675abf62088de02d8cca7371d0d7087e442b2
parent4485007008f039648c4259a26484eabcd5b7cc9b (diff)
build: Use timing hardening flags
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 85e7f4a..be1e513 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,6 +84,11 @@ if test "x${address_sanitization}" = 'xyes'; then
AC_SUBST([ASAN_CFLAGS])
fi
+AX_CHECK_COMPILE_FLAG([-DTFM_TIMING_RESISTANT],
+ [AX_APPEND_FLAG([-DTFM_TIMING_RESISTANT])])
+AX_CHECK_COMPILE_FLAG([-DECC_TIMING_RESISTANT],
+ [AX_APPEND_FLAG([-DECC_TIMING_RESISTANT])])
+
PKG_PROG_PKG_CONFIG()
PKG_CHECK_MODULES([WOLFSSL], [wolfssl])
WOLFSSL_CFLAGS="$(printf ' %s' "${WOLFSSL_CFLAGS}" | \