fix daysValid seconds calculation

This commit is contained in:
Chris Conlon
2018-09-21 11:04:39 -06:00
parent a5fffdbbb7
commit 0591b18339

View File

@ -9625,7 +9625,7 @@ static int SetValidity(byte* output, int daysValid)
afterSz = SetLength(ASN_GEN_TIME_SZ, after + 1) + 1; /* gen tag */
/* add daysValid of seconds */
then = now + (daysValid * 3600);
then = now + (daysValid * 86400);
expandedTime = XGMTIME(&then, tmpTime);
if (expandedTime == NULL) {
WOLFSSL_MSG("XGMTIME failed");