commit | f48de9579f562bd28fefb60925321eda9bc58530 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Tue Jul 08 14:39:41 2014 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Tue Jul 08 14:39:41 2014 +0200 |
tree | 31867c21d0369236c49828429a8682ec6282552c | |
parent | dedce0c35cf56353050c5406fc6a7fcd37554006 [diff] [blame] |
Use UTC to heck certificate validity
diff --git a/library/x509parse.c b/library/x509parse.c index 085a3cf..f3e7831 100644 --- a/library/x509parse.c +++ b/library/x509parse.c
@@ -3083,7 +3083,7 @@ #if defined(_WIN32) SYSTEMTIME st; - GetLocalTime(&st); + GetSystemTime(&st); now->year = st.wYear; now->mon = st.wMonth; @@ -3096,7 +3096,7 @@ time_t tt; tt = time( NULL ); - localtime_r( &tt, < ); + gmtime_r( &tt, < ); now->year = lt.tm_year + 1900; now->mon = lt.tm_mon + 1;