mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
for cert gen make start day yesterady for bad clocks
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
AC_INIT([cyassl],[2.0.0rc3],[http://www.yassl.com])
|
||||
AC_INIT([cyassl],[2.0.0rc3b],[http://www.yassl.com])
|
||||
|
||||
AC_CONFIG_AUX_DIR(config)
|
||||
|
||||
|
@@ -2640,6 +2640,10 @@ static int SetValidity(byte* output, int daysValid)
|
||||
before[0] = ASN_GENERALIZED_TIME;
|
||||
beforeSz = SetLength(ASN_GEN_TIME_SZ, before + 1) + 1; /* gen tag */
|
||||
|
||||
/* subtract 1 day for more compliance */
|
||||
local.tm_mday -= 1;
|
||||
mktime(&local);
|
||||
|
||||
/* adjust */
|
||||
local.tm_year += 1900;
|
||||
local.tm_mon += 1;
|
||||
|
Reference in New Issue
Block a user