forked from wolfSSL/wolfssl
fix daysValid seconds calculation
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user