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