summaryrefslogtreecommitdiff
path: root/m4/hooks.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/hooks.m4')
-rw-r--r--m4/hooks.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4
index 34a5b38eb9..49367bd1da 100644
--- a/m4/hooks.m4
+++ b/m4/hooks.m4
@@ -144,6 +144,20 @@ LIBTASN1_MINIMUM=4.9
AC_MSG_WARN([C99 macros not supported. This may affect compiling.])
])
+ ac_strict_der_time=yes
+ AC_MSG_CHECKING([whether to disable strict DER time encodings for backwards compatibility])
+ AC_ARG_ENABLE(strict-der-time,
+ AS_HELP_STRING([--disable-strict-der-time],
+ [allow non compliant DER time values]),
+ ac_strict_der_time=$enableval)
+ if test x$ac_strict_der_time != xno; then
+ AC_MSG_RESULT(no)
+ AC_DEFINE([STRICT_DER_TIME], 1, [force strict DER time constraints])
+ else
+ AC_MSG_RESULT(yes)
+ fi
+ AM_CONDITIONAL(STRICT_DER_TIME, test "$ac_strict_der_time" != "no")
+
ac_allow_sha1=no
AC_MSG_CHECKING([whether to allow SHA1 as an acceptable hash for cert digital signatures])
AC_ARG_ENABLE(sha1-support,