]> git.ipfire.org Git - thirdparty/openssl.git/commit
Adapt the tests to not care about failures from platform gmtime()
authorBob Beck <beck@openssl.org>
Sat, 4 Oct 2025 13:34:11 +0000 (07:34 -0600)
committerNeil Horman <nhorman@openssl.org>
Tue, 21 Oct 2025 16:19:00 +0000 (12:19 -0400)
commit2fbc715b18840840f3fbc14ab507e852f93840d2
tree0169c70c4f6c913a18cb4a49e0f5bd92d6952aea
parentca7fb4e77ed1a607669fa93cb650fc88f9e3978f
Adapt the tests to not care about failures from platform gmtime()

Now that we don't use gmtime, timegm and friends from the platform
we should be able to handle all values the same on any platform
with no concerns other than what the platform has decided to use
for time_t.

The hpux #ifdef is removed, as looking at f5e3115361f shows this
was added due to a gmtime() failure on the platform.

This then clears out all the platform specific chaos in helper.c
as an example of why the public API being added is actually
generally useful, as it has been noticed that users of OpenSSL
frequently end up dealing with the same issues in the same really
awful ways in their own software as were were doing in that file
in the tests.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28748)
test/asn1_time_test.c
test/ca_internals_test.c
test/testutil.h
test/testutil/helper.c