Lines Matching refs:ptime

165     ASN1_TIME *ptime;  in test_table()  local
210 ptime = ASN1_TIME_set(NULL, td->t); in test_table()
211 if (!TEST_ptr(ptime)) { in test_table()
216 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, td->t), 0)) { in test_table()
218 (long)td->t, td->data, ptime->data); in test_table()
221 if (!TEST_int_eq(ptime->type, td->expected_type)) { in test_table()
226 TEST_info("ASN1_TIME_set() = %*s", ptime->length, ptime->data); in test_table()
227 ASN1_TIME_free(ptime); in test_table()
230 ptime = ASN1_TIME_new(); in test_table()
231 if (!TEST_ptr(ptime)) { in test_table()
236 if (!TEST_int_eq(ASN1_TIME_set_string(ptime, td->data), td->check_result)) { in test_table()
240 if (!TEST_int_eq(ASN1_TIME_normalize(ptime), td->check_result)) { in test_table()
244 if (!TEST_int_eq(ptime->type, td->expected_type)) { in test_table()
249 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table()
253 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, gtime_t), td->cmp_result)) { in test_table()
258 TEST_info("ASN1_TIME_set_string_gmt() = %*s", ptime->length, ptime->data); in test_table()
259 ASN1_TIME_free(ptime); in test_table()
262 ptime = ASN1_TIME_new(); in test_table()
263 if (!TEST_ptr(ptime)) { in test_table()
268 if (!TEST_int_eq(ASN1_TIME_set_string(ptime, td->data), td->check_result)) { in test_table()
273 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table()
277 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, gtime_t), td->cmp_result)) { in test_table()
282 TEST_info("ASN1_TIME_set_string() = %*s", ptime->length, ptime->data); in test_table()
283 ASN1_TIME_free(ptime); in test_table()
287 ptime = ASN1_TIME_to_generalizedtime(&atime, NULL); in test_table()
288 if (td->convert_result == 1 && !TEST_ptr(ptime)) { in test_table()
291 } else if (td->convert_result == 0 && !TEST_ptr_null(ptime)) { in test_table()
295 if (ptime != NULL && !TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, td->t), 0)) { in test_table()
296 TEST_info("ASN1_TIME_to_generalizedtime(%s->%s) bad result", atime.data, ptime->data); in test_table()
299 ASN1_TIME_free(ptime); in test_table()