Lines Matching +full:0 +full:xa1
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;
100 "\x30\x1b\xa0\x10\x30\x0e\xa0\x03\x02\x01\x01\xa1\x07\x30\x05\x1b"
101 "\x03\x6c\x68\x61\xa1\x07\x1b\x05\x53\x55\x2e\x53\x45"
104 "\x30\x21\xa0\x16\x30\x14\xa0\x03\x02\x01\x01\xa1\x0d\x30\x0b\x1b"
105 "\x03\x6c\x68\x61\x1b\x04\x72\x6f\x6f\x74\xa1\x07\x1b\x05\x53\x55"
109 "\x30\x34\xa0\x26\x30\x24\xa0\x03\x02\x01\x03\xa1\x1d\x30\x1b\x1b"
111 "\x72\x2e\x65\x2e\x6b\x74\x68\x2e\x73\x65\xa1\x0a\x1b\x08\x45\x2e"
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;
170 "\x62\x3d\x30\x3b\xa0\x03\x02\x01\x05\xa1\x0a\x1b\x08"
172 "\x03\x02\x01\x01\xa1\x07\x30\x05\x1b\x03\x6c\x68\x61"
177 "\x62\x41\x30\x3f\xa0\x03\x02\x01\x05\xa1\x07\x1b\x05"
179 "\x01\xa1\x0d\x30\x0b\x1b\x03\x6c\x68\x61\x1b\x04\x72"
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;
265 "\x7e\x7d\x30\x7b\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\x11"
269 "\xa0\x03\x02\x01\x01\xa1\x07\x30\x05\x1b\x03\x6c\x68\x61\xa9\x0d"
271 "\x1e\xa0\x03\x02\x01\x01\xa1\x17\x30\x15\x1b\x06\x6b\x72\x62\x74"
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));
545 tests[0].val = ×[0];
586 "\xdd\x27\x96\x59\x9b\x0e\x68\xa1\x2e\xa4\x2c\x30\x2a\x31\x1b\x30"
599 "\xcb\xb1\xa1\xb9\xc1\xa3\x71\x5e\x4a\xc2\x67\xdf\x66\x0a\x51\xb5"
629 "\x2e\x53\x45\xa1\x20\x30\x1e\xa0\x03\x02\x01\x01\xa1\x17\x30\x15"
637 "\x9e\x6c\xbb\x37\x4a\xa1\x9e\x73\xd1\xdc\x97\x61\xba\xfc\xd3\x49"
653 for (i = 0; i < sizeof(certs)/sizeof(certs[0]); i++) {
668 return 0;
680 return 0;
693 memset(<1, 0, sizeof(lt1));
697 tests[0].val = <1;
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;
895 { NULL, 5, "\xa1\x03\x02\x01\x01", "large choice 1" },
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
965 "\x30\x0e\x80\x01\x00\xa1\x06\xbf"
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
1043 "\x30\x0c\x30\x05\xa0\x03\x02\x01\x01\xa1\x03\x02\x01\x03",
1046 "\x30\x05\xa1\x03\x02\x01\x03",
1049 "\x30\x08\xa1\x03\x02\x01\x04\x02\x01\x05",
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" },
1132 "\x30\x05\xa1\x03\x02\x01\x01",
1135 "\x30\x0a\xa0\x03\x02\x01\x00\xa1\x03\x02\x01\x01",
1139 int ret = 0, ntests = sizeof(tests) / sizeof(*tests);
1141 int zero = 0;
1146 tests[0].val = &c0;
1177 {NULL, 0, "", "empty buffer"},
1178 {NULL, 7, "\x30\x05\xa1\x03\x02\x02\x01",
1180 {NULL, 7, "\x30\x04\xa1\x03\x02\x02\x01"
1182 {NULL, 7, "\x30\x03\xa1\x03\x02\x02\x01",
1184 {NULL, 7, "\x30\x02\xa1\x03\x02\x02\x01",
1186 {NULL, 7, "\x30\x01\xa1\x03\x02\x02\x01",
1188 {NULL, 7, "\x30\x00\xa1\x03\x02\x02\x01",
1190 {NULL, 7, "\x30\x05\xa1\x04\x02\x02\x01",
1192 {NULL, 7, "\x30\x00\xa1\x02\x02\x02\x01",
1212 {NULL, 0, "", "empty buffer"},
1214 "\x30\x16\xa0\x03\x02\x01\x01\xa1\x08\x30\x06\xbf\x7f\x03\x02\x01\x01"
1218 "\x30\x18\xa0\x03\x02\x01\x01\xa1\x08\x30\x06\xbf\x7f\x03\x02\x01\x01"
1222 "\x30\x17\xa0\x03\x02\x01\x01\xa1\x08\x30\x06\xbf\x7f\x03\x02\x01"
1237 "\xa1\x02\x02\x01\x01",
1240 "\xa1\x03\x02\x02\x01",
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;