aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2020-02-24 01:20:27 +1100
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2020-02-24 01:20:27 +1100
commit2ae0a68ef20f638587a9423770e488198d703fd0 (patch)
treeef86220483f9cc495b8e8642bacf27a47777cdd0 /src
parent0af7e619e13abb02da07ae64040a58255a5cd200 (diff)
downloadluaossl-2ae0a68ef20f638587a9423770e488198d703fd0.tar.gz
luaossl-2ae0a68ef20f638587a9423770e488198d703fd0.tar.bz2
luaossl-2ae0a68ef20f638587a9423770e488198d703fd0.zip
src/openssl.c: Fix reading ASN1_TIME timestamps from before 2000
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
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;