Skip to content

Commit c923c4c

Browse files
committed
fix compile error
1 parent 30fe079 commit c923c4c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/x509_str.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,13 @@ static int X509StoreVerifyCertDate(WOLFSSL_X509_STORE_CTX* ctx, int ret)
389389
WOLFSSL_MSG("Using system time for date validation");
390390
/* use system time for date validation */
391391
if (wc_ValidateDate(afterDate,
392-
(byte)ctx->current_cert->notAfter.type, ASN_AFTER) < 1) {
392+
(byte)ctx->current_cert->notAfter.type, ASN_AFTER,
393+
ctx->current_cert->notAfter.length) < 1) {
393394
ret = ASN_AFTER_DATE_E;
394395
}
395396
else if (wc_ValidateDate(beforeDate,
396-
(byte)ctx->current_cert->notBefore.type, ASN_BEFORE) < 1) {
397+
(byte)ctx->current_cert->notBefore.type, ASN_BEFORE,
398+
ctx->current_cert->notBefore.length) < 1) {
397399
ret = ASN_BEFORE_DATE_E;
398400
}
399401
}

0 commit comments

Comments
 (0)