From: Richard Basch Date: Tue, 5 Dec 1995 03:32:11 +0000 (+0000) Subject: Use symbolic names for the encryption types. X-Git-Tag: krb5-1.0-beta6~745 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ac0e31bc7a77155c0b9a74522115c4ddb8063a98;p=krb5.git Use symbolic names for the encryption types. Support 3-DES, too. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7162 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index d70beede5..cb5850caa 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -346,15 +346,18 @@ etype_string(enctype) static char buf[12]; switch (enctype) { - case 1: + case ENCTYPE_DES_CBC_CRC: return "DES-CBC-CRC"; break; - case 2: + case ENCTYPE_DES_CBC_MD4: return "DES-CBC-MD4"; break; - case 3: + case ENCTYPE_DES_CBC_MD5: return "DES-CBC-MD5"; break; + case ENCTYPE_DES3_CBC_MD5: + return "DES3-CBC-MD5"; + break; default: sprintf(buf, "etype %d", enctype); return buf;