From 2ae0a68ef20f638587a9423770e488198d703fd0 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 24 Feb 2020 01:20:27 +1100 Subject: src/openssl.c: Fix reading ASN1_TIME timestamps from before 2000 --- src/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openssl.c b/src/openssl.c index c3547bb..1f0f5e4 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -6634,7 +6634,7 @@ static double timeutc(const ASN1_TIME *time) { } else { if (!scan(&year, &cp, 2, 0)) goto badfmt; - year += (year < 50)? 2000 : 1999; + year += (year < 50)? 2000 : 1900; } tm.tm_year = year - 1900; -- cgit v1.2.3-59-g8ed1b