summaryrefslogtreecommitdiff
path: root/lib/x509/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x509/time.c')
-rw-r--r--lib/x509/time.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/x509/time.c b/lib/x509/time.c
index 2843d32345..fa10a91002 100644
--- a/lib/x509/time.c
+++ b/lib/x509/time.c
@@ -184,12 +184,15 @@ time_t _gnutls_utcTime2gtime(const char *ttime)
gnutls_assert();
return (time_t) - 1;
}
+
+#ifdef STRICT_DER_TIME
/* Make sure everything else is digits. */
for (i = 0; i < len - 1; i++) {
if (c_isdigit(ttime[i]))
continue;
return gnutls_assert_val((time_t)-1);
}
+#endif
xx[2] = 0;
/* get the year