From c8185dcb4d1952a5d26e1b228d88ca737d41021b Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 30 Jul 2019 00:25:04 -0400 Subject: build: Use timing hardening flags --- 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}" | \ -- cgit v0.9.1