diff options
author | shridhar kalavagunta <coolshrid@hotmail.com> | 2024-01-11 17:01:23 -0600 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-05-07 12:07:49 +0200 |
commit | 57bb112c07116d1cdbf5bc8562ebb3e7990f291c (patch) | |
tree | 05e04e4c4a63d52c791dcfc324c7a19203fd4553 /test/asn1_time_test.c | |
parent | 69bd5e4fff8ac9bf4dc3ed6fd87b5a5858edbb01 (diff) |
Move ossl_asn1_string_to_time_t() to libtestutil
It is not used anywhere else than in tests.
Fixes #22965
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23269)
Diffstat (limited to 'test/asn1_time_test.c')
-rw-r--r-- | test/asn1_time_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/asn1_time_test.c b/test/asn1_time_test.c index 7736fd3416..32bc4ff2ad 100644 --- a/test/asn1_time_test.c +++ b/test/asn1_time_test.c @@ -434,10 +434,10 @@ static int convert_asn1_to_time_t(int idx) { time_t testdateutc; - testdateutc = ossl_asn1_string_to_time_t(asn1_to_utc[idx].input); + testdateutc = test_asn1_string_to_time_t(asn1_to_utc[idx].input); if (!TEST_time_t_eq(testdateutc, asn1_to_utc[idx].expected)) { - TEST_info("ossl_asn1_string_to_time_t (%s) failed: expected %lli, got %lli\n", + TEST_info("test_asn1_string_to_time_t (%s) failed: expected %lli, got %lli\n", asn1_to_utc[idx].input, (long long int)asn1_to_utc[idx].expected, (long long int)testdateutc); |