Commit 8ff4c45a authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL

[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'
parent ae3da5a7
/* (1.04) /* (1.05)
* *
* This file is automatically maintained by srccommit, do not edit manually. * 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_MinorVersion_CMHG
#define Module_Date_CMHG 26 Jan 2019 #define Module_Date_CMHG 09 Sep 2019
#define Module_MajorVersion "1.04" #define Module_MajorVersion "1.05"
#define Module_Version 104 #define Module_Version 105
#define Module_MinorVersion "" #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_ComponentName "AcornSSL"
#define Module_ComponentPath "cddl/RiscOS/Sources/Networking/Fetchers/AcornSSL"
#define Module_FullVersion "1.04" #define Module_FullVersion "1.05"
#define Module_HelpVersion "1.04 (26 Jan 2019)" #define Module_HelpVersion "1.05 (09 Sep 2019)"
#define Module_LibraryVersionInfo "1:04" #define Module_LibraryVersionInfo "1:5"
...@@ -56,7 +56,7 @@ static int leap_days_between(uint32_t y1, uint32_t y2) ...@@ -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) 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, 0, 31, 59, 90, 120, 151,
181, 212, 243, 273, 304, 334 181, 212, 243, 273, 304, 334
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment