Lines Matching refs:ptime
114 ASN1_TIME *ptime; in test_table() local
159 ptime = ASN1_TIME_set(NULL, td->t); in test_table()
160 if (!TEST_ptr(ptime)) { in test_table()
165 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, td->t), 0)) { in test_table()
167 (long)td->t, td->data, ptime->data); in test_table()
170 if (!TEST_int_eq(ptime->type, td->expected_type)) { in test_table()
175 TEST_info("ASN1_TIME_set() = %*s", ptime->length, ptime->data); in test_table()
176 ASN1_TIME_free(ptime); in test_table()
179 ptime = ASN1_TIME_new(); in test_table()
180 if (!TEST_ptr(ptime)) { in test_table()
185 if (!TEST_int_eq(ASN1_TIME_set_string(ptime, td->data), td->check_result)) { in test_table()
189 if (!TEST_int_eq(ASN1_TIME_normalize(ptime), td->check_result)) { in test_table()
193 if (!TEST_int_eq(ptime->type, td->expected_type)) { in test_table()
198 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table()
202 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, gtime_t), td->cmp_result)) { in test_table()
207 TEST_info("ASN1_TIME_set_string_gmt() = %*s", ptime->length, ptime->data); in test_table()
208 ASN1_TIME_free(ptime); in test_table()
211 ptime = ASN1_TIME_new(); in test_table()
212 if (!TEST_ptr(ptime)) { in test_table()
217 if (!TEST_int_eq(ASN1_TIME_set_string(ptime, td->data), td->check_result)) { in test_table()
222 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table()
226 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, gtime_t), td->cmp_result)) { in test_table()
231 TEST_info("ASN1_TIME_set_string() = %*s", ptime->length, ptime->data); in test_table()
232 ASN1_TIME_free(ptime); in test_table()
236 ptime = ASN1_TIME_to_generalizedtime(&atime, NULL); in test_table()
237 if (td->convert_result == 1 && !TEST_ptr(ptime)) { in test_table()
240 } else if (td->convert_result == 0 && !TEST_ptr_null(ptime)) { in test_table()
244 if (ptime != NULL && !TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, td->t), 0)) { in test_table()
245 TEST_info("ASN1_TIME_to_generalizedtime(%s->%s) bad result", atime.data, ptime->data); in test_table()
248 ASN1_TIME_free(ptime); in test_table()