From 0591b183391e355291e409f496c827a8e9013e2a Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Fri, 21 Sep 2018 11:04:39 -0600 Subject: [PATCH] fix daysValid seconds calculation --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 01bc370a9..4a555a654 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -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");