there is no \e escape sequence; replace everything with hex-codes, and

cast to unsigned char* to make some compilers happy


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12219 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2003-05-06 16:21:19 +00:00
parent eb7f988877
commit 92c75b1260

View File

@@ -80,18 +80,22 @@ cmp_principal (void *a, void *b)
static int
test_principal (void)
{
struct test_case tests[] = {
{ NULL, 29,
"0\e<EFBFBD>\0200\016<EFBFBD>\003\002\001\001<EFBFBD>\a0\005\e\003"
"lha<EFBFBD>\a\e\005SU.SE"
(unsigned char*)"\x30\x1b\xa0\x10\x30\x0e\xa0\x03\x02\x01\x01\xa1\x07\x30\x05\x1b"
"\x03\x6c\x68\x61\xa1\x07\x1b\x05\x53\x55\x2e\x53\x45"
},
{ NULL, 35,
"0!<21>\0260\024<EFBFBD>\003\002\001\001<EFBFBD>\r0\013\e\003"
"lha\e\004root<EFBFBD>\a\e\005SU.SE"
(unsigned char*)"\x30\x21\xa0\x16\x30\x14\xa0\x03\x02\x01\x01\xa1\x0d\x30\x0b\x1b"
"\x03\x6c\x68\x61\x1b\x04\x72\x6f\x6f\x74\xa1\x07\x1b\x05\x53\x55"
"\x2e\x53\x45"
},
{ NULL, 54,
"04<EFBFBD>&0$<24>\003\002\001\003<EFBFBD>\0350\e\e\004"
"host\e\023nutcracker.e.kth.se<73>\n\e\bE.KTH.SE"
(unsigned char*)"\x30\x34\xa0\x26\x30\x24\xa0\x03\x02\x01\x03\xa1\x1d\x30\x1b\x1b"
"\x04\x68\x6f\x73\x74\x1b\x13\x6e\x75\x74\x63\x72\x61\x63\x6b\x65"
"\x72\x2e\x65\x2e\x6b\x74\x68\x2e\x73\x65\xa1\x0a\x1b\x08\x45\x2e"
"\x4b\x54\x48\x2e\x53\x45"
}
};
@@ -140,14 +144,14 @@ test_authenticator (void)
{
struct test_case tests[] = {
{ NULL, 63,
"\x62\x3d\x30\x3b\xa0\x03\x02\x01\x05\xa1\x0a\x1b\x08"
(unsigned char*)"\x62\x3d\x30\x3b\xa0\x03\x02\x01\x05\xa1\x0a\x1b\x08"
"\x45\x2e\x4b\x54\x48\x2e\x53\x45\xa2\x10\x30\x0e\xa0"
"\x03\x02\x01\x01\xa1\x07\x30\x05\x1b\x03\x6c\x68\x61"
"\xa4\x03\x02\x01\x0a\xa5\x11\x18\x0f\x31\x39\x37\x30"
"\x30\x31\x30\x31\x30\x30\x30\x31\x33\x39\x5a"
},
{ NULL, 67,
"\x62\x41\x30\x3f\xa0\x03\x02\x01\x05\xa1\x07\x1b\x05"
(unsigned char*)"\x62\x41\x30\x3f\xa0\x03\x02\x01\x05\xa1\x07\x1b\x05"
"\x53\x55\x2e\x53\x45\xa2\x16\x30\x14\xa0\x03\x02\x01"
"\x01\xa1\x0d\x30\x0b\x1b\x03\x6c\x68\x61\x1b\x04\x72"
"\x6f\x6f\x74\xa4\x04\x02\x02\x01\x24\xa5\x11\x18\x0f"