summaryrefslogtreecommitdiff
path: root/test/time_offset_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/time_offset_test.c')
-rw-r--r--test/time_offset_test.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/time_offset_test.c b/test/time_offset_test.c
index 3560f4cef5..b7f1e87367 100644
--- a/test/time_offset_test.c
+++ b/test/time_offset_test.c
@@ -96,10 +96,7 @@ static int test_offset(int idx)
return 0;
}
- if (at.type == V_ASN1_UTCTIME)
- ret = ASN1_UTCTIME_cmp_time_t(&at, the_time);
- else
- return 1; /* no other cmp_time_t() functions available, yet */
+ ret = ASN1_TIME_cmp_time_t(&at, the_time);
if (!TEST_int_eq(testdata->time_result, ret)) {
TEST_info("ASN1_UTCTIME_cmp_time_t() test failed for %s\n", at.data);