From 8ff4c45a2109ecb8d0b3d4395e2a48c265117cf1 Mon Sep 17 00:00:00 2001 From: Robert Sprowson <rsprowson@gitlab.riscosopen.org> Date: Fri, 6 Sep 2019 18:08:10 +0100 Subject: [PATCH] [474] Fix out-by-1 in certificate prompt Cumulative table of months had a duplicate January for a 13 month year, so any dates after January ended up being shown as a month late. Version 1.05. Tagged as 'AcornSSL-1_05' --- VersionNum | 22 ++++++++++------------ c/timelib | 2 +- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/VersionNum b/VersionNum index 380872f..889f890 100644 --- a/VersionNum +++ b/VersionNum @@ -1,23 +1,21 @@ -/* (1.04) +/* (1.05) * * This file is automatically maintained by srccommit, do not edit manually. - * Last processed by srccommit version: 1.1. * */ -#define Module_MajorVersion_CMHG 1.04 +#define Module_MajorVersion_CMHG 1.05 #define Module_MinorVersion_CMHG -#define Module_Date_CMHG 26 Jan 2019 +#define Module_Date_CMHG 09 Sep 2019 -#define Module_MajorVersion "1.04" -#define Module_Version 104 +#define Module_MajorVersion "1.05" +#define Module_Version 105 #define Module_MinorVersion "" -#define Module_Date "26 Jan 2019" +#define Module_Date "09 Sep 2019" -#define Module_ApplicationDate "26-Jan-19" +#define Module_ApplicationDate "09-Sep-19" #define Module_ComponentName "AcornSSL" -#define Module_ComponentPath "cddl/RiscOS/Sources/Networking/Fetchers/AcornSSL" -#define Module_FullVersion "1.04" -#define Module_HelpVersion "1.04 (26 Jan 2019)" -#define Module_LibraryVersionInfo "1:04" +#define Module_FullVersion "1.05" +#define Module_HelpVersion "1.05 (09 Sep 2019)" +#define Module_LibraryVersionInfo "1:5" diff --git a/c/timelib b/c/timelib index 9b731ad..c3c38a5 100644 --- a/c/timelib +++ b/c/timelib @@ -56,7 +56,7 @@ static int leap_days_between(uint32_t y1, uint32_t y2) time_t x509_to_utc(const mbedtls_x509_time *in) { - static const uint16_t complete_months[] = { -1, 0, /* 1's based months */ + static const uint16_t complete_months[] = { -1, /* 1's based months */ 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 }; -- GitLab