From 94e157f5ad26a4b05dfcd4b60db6d80f681e6ceb Mon Sep 17 00:00:00 2001 From: Ruby Martin Date: Mon, 13 Jul 2026 13:08:18 -0600 Subject: [PATCH] Direct compare paramTo->check_time == 11 to prevent store_truncates_time_t --- tests/api/test_ossl_x509_vp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api/test_ossl_x509_vp.c b/tests/api/test_ossl_x509_vp.c index 9cc31179af..4cf338c526 100644 --- a/tests/api/test_ossl_x509_vp.c +++ b/tests/api/test_ossl_x509_vp.c @@ -170,13 +170,13 @@ int test_wolfSSL_X509_VERIFY_PARAM(void) paramTo->flags = WOLFSSL_USE_CHECK_TIME; paramFrom->check_time = 22; ExpectIntEQ(X509_VERIFY_PARAM_inherit(paramTo, paramFrom), 1); - ExpectIntEQ(paramTo->check_time, 11); + ExpectTrue(paramTo->check_time == 11); ExpectIntEQ(paramTo->flags & WOLFSSL_USE_CHECK_TIME, WOLFSSL_USE_CHECK_TIME); paramTo->inherit_flags = X509_VP_FLAG_OVERWRITE; ExpectIntEQ(X509_VERIFY_PARAM_inherit(paramTo, paramFrom), 1); - ExpectIntEQ(paramTo->check_time, 22); + ExpectTrue(paramTo->check_time == 22); ExpectIntEQ(paramTo->flags & WOLFSSL_USE_CHECK_TIME, 0); /* test for incorrect parameters */