From 113f189fcf2042039f5f441ad84f8d2ea3083b8f Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 28 Oct 1999 23:10:38 +0000 Subject: [PATCH] (tests): update the test cases with empty principals so that they actually use an empty realm and not the default. use the correct etype for 3DES git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7277 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/string-to-key-test.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/krb5/string-to-key-test.c b/lib/krb5/string-to-key-test.c index 198211dc4..52dd11541 100644 --- a/lib/krb5/string-to-key-test.c +++ b/lib/krb5/string-to-key-test.c @@ -42,21 +42,21 @@ static struct testcase { krb5_enctype enctype; unsigned char res[MAXSIZE]; } tests[] = { - {"", "", ETYPE_DES_CBC_MD5, - {0x31, 0x46, 0x9d, 0xa4, 0xa7, 0xec, 0x4f, 0xce}}, + {"@", "", ETYPE_DES_CBC_MD5, + {0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01}}, {"nisse@FOO.SE", "hej", ETYPE_DES_CBC_MD5, {0xfe, 0x67, 0xbf, 0x9e, 0x57, 0x6b, 0xfe, 0x52}}, {"assar/liten@FOO.SE", "hemligt", ETYPE_DES_CBC_MD5, {0x5b, 0x9b, 0xcb, 0xf2, 0x97, 0x43, 0xc8, 0x40}}, - {"", "", ETYPE_NEW_DES3_CBC_SHA1, - {0x76, 0x0d, 0x51, 0xbc, 0xa7, 0x67, 0x9e, 0x08, 0x92, 0xa8, - 0x98, 0x0e, 0xd3, 0x1a, 0xcd, 0x1a, 0x34, 0x16, 0x26, 0x57, 0xb5, - 0x79, 0xa8, 0x4a}}, - {"nisse@FOO.SE", "hej", ETYPE_NEW_DES3_CBC_SHA1, + {"@", "", ETYPE_DES3_CBC_SHA1, + {0xce, 0xa2, 0x2f, 0x9b, 0x52, 0x2c, 0xb0, 0x15, 0x6e, 0x6b, 0x64, + 0x73, 0x62, 0x64, 0x73, 0x4f, 0x6e, 0x73, 0xce, 0xa2, 0x2f, 0x9b, + 0x52, 0x57}}, + {"nisse@FOO.SE", "hej", ETYPE_DES3_CBC_SHA1, {0x0e, 0xbc, 0x23, 0x9d, 0x68, 0x46, 0xf2, 0xd5, 0x51, 0x98, 0x5b, 0x57, 0xc1, 0x57, 0x01, 0x79, 0x04, 0xc4, 0xe9, 0xfe, 0xc1, 0x0e, 0x13, 0xd0}}, - {"assar/liten@FOO.SE", "hemligt", ETYPE_NEW_DES3_CBC_SHA1, + {"assar/liten@FOO.SE", "hemligt", ETYPE_DES3_CBC_SHA1, {0x7f, 0x40, 0x67, 0xb9, 0xbc, 0xc4, 0x40, 0xfb, 0x43, 0x73, 0xd9, 0xd3, 0xcd, 0x7c, 0xc7, 0x67, 0xe6, 0x79, 0x94, 0xd0, 0xa8, 0x34, 0xdf, 0x62}},