]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Windows is having issues, print the time it doesn't like when it fails
authorBob Beck <beck@openssl.org>
Tue, 7 Oct 2025 08:07:13 +0000 (02:07 -0600)
committerNeil Horman <nhorman@openssl.org>
Thu, 16 Oct 2025 13:23:52 +0000 (09:23 -0400)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28623)

test/x509_internal_test.c

index 53c704d32d7857fda1e47357f4fdeb02d67e6fc4..bf45299110f727076a2e353f17520238acea39b9 100644 (file)
@@ -381,11 +381,11 @@ static int do_x509_time_tests(CERT_TEST_DATA *tests, size_t ntests, int64_t lowe
             continue;
 
         if (ASN1_TIME_adj(nb, (time_t)tests[i].NotBefore, 0, 0) == NULL) {
-            TEST_info("Could not create NotBefore");
+            TEST_info("Could not create NotBefore for time %lld\n", (long long) tests[i].NotBefore);
             goto err;
         }
         if (ASN1_TIME_adj(na, (time_t)tests[i].NotAfter, 0, 0) == NULL) {
-            TEST_info("Could not create NotAfter");
+            TEST_info("Could not create NotAfter for time %lld\n", (long long) tests[i].NotBefore);
             goto err;
         }