Lines Matching +full:0 +full:x5a

65 	do { if (strcmp(*(ac)->e, *(bc)->e) != 0) return 1; } while(0)
67 do { if ((ac)->e->length != (bc)->e->length || memcmp((ac)->e->data, (bc)->e->data, (ac)->e->length) != 0) return 1; } while(0)
69 do { if (strcmp((ac)->e, (bc)->e) != 0) return 1; } while(0)
71 do { if ((ac)->e != (bc)->e) return 1; } while(0)
73 do { if (*(ac)->e != *(bc)->e) return 1; } while(0)
75 do { if (memcmp((ac)->e, (bc)->e,len) != 0) return 1; } while(0)
88 for (i = 0; i < pa->name.name_string.len; i++)
91 return 0;
125 for (i = 0; i < ntests; ++i) {
127 if (asprintf (&tests[i].name, "Principal %d", i) < 0)
140 for (i = 0; i < ntests; ++i)
159 for (i = 0; i < aa->cname.name_string.len; i++)
162 return 0;
174 "\x30\x31\x30\x31\x30\x30\x30\x31\x33\x39\x5a"
182 "\x39\x5a"
195 for (i = 0; i < ntests; ++i) {
197 if (asprintf (&tests[i].name, "Authenticator %d", i) < 0)
210 for (i = 0; i < ntests; ++i)
239 #if 0
247 for (i = 0; i < aa->sname.name_string.len; i++)
257 return 0;
267 "\x5a\xa5\x05\x02\x03\x04\xed\xa5\xa6\x03\x02\x01\x1f\xa7\x0d\x1b"
296 tests[0].val = &e1;
315 return 0;
348 n1.u.rdnSequence.len = sizeof(rdn1)/sizeof(rdn1[0]);
349 rdn1[0].val = atv1;
350 rdn1[0].len = sizeof(atv1)/sizeof(atv1[0]);
352 atv1[0].type.length = sizeof(cmp_CN)/sizeof(cmp_CN[0]);
353 atv1[0].type.components = cmp_CN;
354 atv1[0].value.element = choice_DirectoryString_printableString;
355 atv1[0].value.u.printableString.data = "Love";
356 atv1[0].value.u.printableString.length = 4;
358 atv1[1].type.length = sizeof(cmp_L)/sizeof(cmp_L[0]);
367 n2.u.rdnSequence.len = sizeof(rdn2)/sizeof(rdn2[0]);
368 rdn2[0].val = atv2;
369 rdn2[0].len = sizeof(atv2)/sizeof(atv2[0]);
371 atv2[0].type.length = sizeof(cmp_L)/sizeof(cmp_L[0]);
372 atv2[0].type.components = cmp_L;
373 atv2[0].value.element = choice_DirectoryString_printableString;
374 atv2[0].value.u.printableString.data = "STOCKHOLM";
375 atv2[0].value.u.printableString.length = 9;
377 atv2[1].type.length = sizeof(cmp_CN)/sizeof(cmp_CN[0]);
384 tests[0].val = &n1;
430 memset(&ku1, 0, sizeof(ku1));
432 tests[0].val = &ku1;
434 memset(&ku2, 0, sizeof(ku2));
439 memset(&ku3, 0, sizeof(ku3));
443 memset(&ku4, 0, sizeof(ku4));
490 memset(&tf1, 0, sizeof(tf1));
492 tests[0].val = &tf1;
494 memset(&tf2, 0, sizeof(tf2));
499 memset(&tf3, 0, sizeof(tf3));
503 memset(&tf4, 0, sizeof(tf4));
531 "\x5a",
535 "\x5a"
545 tests[0].val = &times[0];
568 "\x39\x34\x30\x5a\x17\x0d\x31\x39\x30\x34\x32\x34\x32\x30\x32\x39"
569 "\x34\x30\x5a\x30\x2a\x31\x1b\x30\x19\x06\x03\x55\x04\x03\x0c\x12"
576 "\x79\xf3\x1c\x8c\x5a\xd6\xb0\xd7\x19\xea\xcc\xaf\xe0\xa8\x40\x02"
579 "\xb2\xff\x47\xd1\x3b\x52\x73\xeb\x5a\xc0\x03\xa6\x4b\xc7\x40\x7e"
584 "\x27\x96\x59\x9b\x0e\x68\x30\x5a\x06\x03\x55\x1d\x23\x04\x53\x30"
608 "\x39\x30\x34\x32\x36\x32\x30\x32\x39\x34\x30\x5a\x17\x0d\x31\x39"
609 "\x30\x34\x32\x34\x32\x30\x32\x39\x34\x30\x5a\x30\x1b\x31\x0b\x30"
635 "\x4c\x76\xa9\xe3\x4e\x49\xd3\xc2\x69\x5a\x95\x03\xeb\xba\x72\x23"
653 for (i = 0; i < sizeof(certs)/sizeof(certs[0]); i++) {
668 return 0;
680 return 0;
693 memset(&lt1, 0, sizeof(lt1));
697 tests[0].val = &lt1;
724 { 0, 3, 0, "\x02\x02\x00"},
725 { 0, 3, 0, "\x02\x7f\x7f"},
726 { 0, 4, 0, "\x02\x03\x00\x80"},
727 { 0, 4, 0, "\x02\x7f\x01\x00"},
728 { 0, 5, 0, "\x02\xff\x7f\x02\x00"}
731 TESTuint32 values[] = {0, 127, 128, 256, 512,
732 0, 127, 128, 256, 512 };
734 int i, ret, failed = 0;
737 for (i = 0; i < sizeof(td)/sizeof(td[0]); i++) {
749 if (td[i].ok == 0) {
778 { 0, 3, 0, "\x02\x02\x00"},
779 { 0, 3, 0, "\x02\x7f\x7f"},
780 { 0, 4, 0, "\x02\x03\x00\x80"},
781 { 0, 4, 0, "\x02\x7f\x01\x00"},
782 { 0, 5, 0, "\x02\xff\x7f\x02\x00"}
785 TESTuint64 values[] = {0, 8589934591LL, 8589934592LL,
788 0, 127, 128, 256, 512 };
790 int i, ret, failed = 0;
793 for (i = 0; i < sizeof(td)/sizeof(td[0]); i++) {
806 if (td[i].ok == 0) {
837 { 0, 3, 0, "\x02\x02\x00"},
838 { 0, 3, 0, "\x02\x7f\x7f"},
839 { 0, 4, 0, "\x02\x03\x00\x80"},
840 { 0, 4, 0, "\x02\x7f\x01\x00"},
841 { 0, 5, 0, "\x02\xff\x7f\x02\x00"}
844 TESTint64 values[] = {0, -8589934591LL, -8589934592LL,
847 0, 127, 128, 256, 512 };
849 int i, ret, failed = 0;
852 for (i = 0; i < sizeof(td)/sizeof(td[0]); i++) {
865 if (td[i].ok == 0) {
888 return 0;
899 int ret = 0, ntests = sizeof(tests) / sizeof(*tests);
904 memset(&c1, 0, sizeof(c1));
907 tests[0].val = &c1;
909 memset(&c2_1, 0, sizeof(c2_1));
922 memset(&c2_2, 0, sizeof(c2_2));
948 return 0;
953 CONTEXT PRIM 0 1 00
970 int ret = 0, ntests = sizeof(tests) / sizeof(*tests);
973 memset(&c0, 0, sizeof(c0));
974 c0.ti1 = 0;
977 tests[0].val = &c0;
1016 return 0;
1022 CONTEXT CONS 0 3
1053 int ret = 0, ntests = sizeof(tests) / sizeof(*tests);
1057 memset(&c1, 0, sizeof(c1));
1061 tests[0].val = &c1;
1063 memset(&c2, 0, sizeof(c2));
1068 memset(&c3, 0, sizeof(c3));
1101 return 0;
1106 CONTEXT CONS 0 3
1114 CONTEXT CONS 0 3
1127 "optional 0" },
1139 int ret = 0, ntests = sizeof(tests) / sizeof(*tests);
1141 int zero = 0;
1146 tests[0].val = &c0;
1177 {NULL, 0, "", "empty buffer"},
1212 {NULL, 0, "", "empty buffer"},
1257 seq.len = 0;
1272 ret = remove_TESTSeqOf(&seq, 0);
1274 ret = remove_TESTSeqOf(&seq, 0);
1276 ret = remove_TESTSeqOf(&seq, 0);
1277 if (ret == 0) {
1282 if (seq.len != 0) {
1287 ret = 0;
1313 if (size != 0) \
1316 return 0; \
1322 #if 0 /* template */
1331 test_seq_of(TESTSeqSizeOf1, 0, &ssof1f1);
1333 test_seq_of(TESTSeqSizeOf1, 0, &ssof1f2);
1336 TESTSeqSizeOf2 ssof2f1 = { 0, NULL };
1341 test_seq_of(TESTSeqSizeOf2, 0, &ssof2f1);
1344 test_seq_of(TESTSeqSizeOf2, 0, &ssof2f2);
1347 TESTSeqSizeOf3 ssof3f1 = { 0, NULL };
1351 test_seq_of(TESTSeqSizeOf3, 0, &ssof3f1);
1356 TESTSeqSizeOf4 ssof4ok1 = { 0, NULL };
1364 test_seq_of(TESTSeqSizeOf4, 0, &ssof4f1);
1367 return 0;
1394 return 0;
1400 int ret = 0;