mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
vs build warning fixes
This commit is contained in:
@@ -22989,12 +22989,12 @@ int wolfSSL_X509_verify_cert(WOLFSSL_X509_STORE_CTX* ctx)
|
|||||||
afterDate = ctx->current_cert->notAfter.data;
|
afterDate = ctx->current_cert->notAfter.data;
|
||||||
beforeDate = ctx->current_cert->notBefore.data;
|
beforeDate = ctx->current_cert->notBefore.data;
|
||||||
|
|
||||||
if (ValidateDate(afterDate, ctx->current_cert->notAfter.type,
|
if (ValidateDate(afterDate, (byte)ctx->current_cert->notAfter.type,
|
||||||
AFTER) < 1) {
|
AFTER) < 1) {
|
||||||
error = X509_V_ERR_CERT_HAS_EXPIRED;
|
error = X509_V_ERR_CERT_HAS_EXPIRED;
|
||||||
}
|
}
|
||||||
else if (ValidateDate(beforeDate, ctx->current_cert->notBefore.type,
|
else if (ValidateDate(beforeDate,
|
||||||
BEFORE) < 1) {
|
(byte)ctx->current_cert->notBefore.type, BEFORE) < 1) {
|
||||||
error = X509_V_ERR_CERT_NOT_YET_VALID;
|
error = X509_V_ERR_CERT_NOT_YET_VALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user