Lines Matching refs:idx
256 static int test_x509_cmp_time(int idx) in test_x509_cmp_time() argument
262 t.type = x509_cmp_tests[idx].type; in test_x509_cmp_time()
263 t.data = (unsigned char*)(x509_cmp_tests[idx].data); in test_x509_cmp_time()
264 t.length = strlen(x509_cmp_tests[idx].data); in test_x509_cmp_time()
267 result = X509_cmp_time(&t, &x509_cmp_tests[idx].cmp_time); in test_x509_cmp_time()
268 if (!TEST_int_eq(result, x509_cmp_tests[idx].expected)) { in test_x509_cmp_time()
270 idx, x509_cmp_tests[idx].expected, result); in test_x509_cmp_time()
352 static int test_x509_time(int idx) in test_x509_time() argument
357 if (x509_format_tests[idx].set_string) { in test_x509_time()
361 TEST_info("test_x509_time(%d) failed: internal error\n", idx); in test_x509_time()
366 result = ASN1_TIME_set_string_X509(t, x509_format_tests[idx].data); in test_x509_time()
368 if (!TEST_int_eq(result, x509_format_tests[idx].expected)) { in test_x509_time()
370 idx, x509_format_tests[idx].expected, result); in test_x509_time()
375 if (t != NULL && x509_format_tests[idx].expected_type != -1) { in test_x509_time()
376 if (!TEST_int_eq(t->type, x509_format_tests[idx].expected_type)) { in test_x509_time()
378 idx, x509_format_tests[idx].expected_type, t->type); in test_x509_time()
384 if (t != NULL && x509_format_tests[idx].expected_string) { in test_x509_time()
386 x509_format_tests[idx].expected_string, in test_x509_time()
387 strlen(x509_format_tests[idx].expected_string))) { in test_x509_time()
389 idx, x509_format_tests[idx].expected_string, t->length, in test_x509_time()
538 static int test_x509_time_print_rfc_822(int idx) in test_x509_time_print_rfc_822() argument
548 rv = ASN1_TIME_print_ex(m, &x509_print_tests_rfc_822[idx].asn1, ASN1_DTFLGS_RFC822); in test_x509_time_print_rfc_822()
549 readable = x509_print_tests_rfc_822[idx].readable; in test_x509_time_print_rfc_822()
566 static int test_x509_time_print_iso_8601(int idx) in test_x509_time_print_iso_8601() argument
576 rv = ASN1_TIME_print_ex(m, &x509_print_tests_iso_8601[idx].asn1, ASN1_DTFLGS_ISO8601); in test_x509_time_print_iso_8601()
577 readable = x509_print_tests_iso_8601[idx].readable; in test_x509_time_print_iso_8601()