Merge pull request #3088 from kaleb-himes/ZD10539

Change Hash union to wc_Hmac_Hash
This commit is contained in:
toddouska
2020-07-14 11:23:30 -07:00
committed by GitHub
6 changed files with 11 additions and 9 deletions

View File

@@ -23051,11 +23051,11 @@ 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, (byte)ctx->current_cert->notAfter.type,
if (XVALIDATE_DATE(afterDate, (byte)ctx->current_cert->notAfter.type,
AFTER) < 1) {
error = X509_V_ERR_CERT_HAS_EXPIRED;
}
else if (ValidateDate(beforeDate,
else if (XVALIDATE_DATE(beforeDate,
(byte)ctx->current_cert->notBefore.type, BEFORE) < 1) {
error = X509_V_ERR_CERT_NOT_YET_VALID;
}