mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Merge pull request #1846 from cconlon/validity
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 */
|
afterSz = SetLength(ASN_GEN_TIME_SZ, after + 1) + 1; /* gen tag */
|
||||||
|
|
||||||
/* add daysValid of seconds */
|
/* add daysValid of seconds */
|
||||||
then = now + (daysValid * 3600);
|
then = now + (daysValid * 86400);
|
||||||
expandedTime = XGMTIME(&then, tmpTime);
|
expandedTime = XGMTIME(&then, tmpTime);
|
||||||
if (expandedTime == NULL) {
|
if (expandedTime == NULL) {
|
||||||
WOLFSSL_MSG("XGMTIME failed");
|
WOLFSSL_MSG("XGMTIME failed");
|
||||||
|
Reference in New Issue
Block a user