diff options
-rw-r--r-- | lib/x509/time.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/x509/time.c b/lib/x509/time.c index 5ae6be01ee..39f47a85f3 100644 --- a/lib/x509/time.c +++ b/lib/x509/time.c @@ -207,8 +207,13 @@ time_t _gnutls_x509_generalTime2gtime(const char *ttime) if (strchr(ttime, 'Z') == 0) { gnutls_assert(); - /* sorry we don't support it yet - */ + /* required to be in GMT */ + return (time_t) - 1; + } + + if (strchr(ttime, '.') != 0) { + gnutls_assert(); + /* no fractional seconds allowed */ return (time_t) - 1; } xx[4] = 0; |