From b8b2f7ef7d2d56c63749ba26fc61c3f4628a1576 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 24 Jun 2020 10:57:31 -0600 Subject: [PATCH] vs build warning fixes --- src/ssl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index d165a398c..cdab65701 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -22989,12 +22989,12 @@ int wolfSSL_X509_verify_cert(WOLFSSL_X509_STORE_CTX* ctx) afterDate = ctx->current_cert->notAfter.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) { error = X509_V_ERR_CERT_HAS_EXPIRED; } - else if (ValidateDate(beforeDate, ctx->current_cert->notBefore.type, - BEFORE) < 1) { + else if (ValidateDate(beforeDate, + (byte)ctx->current_cert->notBefore.type, BEFORE) < 1) { error = X509_V_ERR_CERT_NOT_YET_VALID; }