Use symbolic names for the encryption types.
authorRichard Basch <probe@mit.edu>
Tue, 5 Dec 1995 03:32:11 +0000 (03:32 +0000)
committerRichard Basch <probe@mit.edu>
Tue, 5 Dec 1995 03:32:11 +0000 (03:32 +0000)
Support 3-DES, too.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7162 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/klist/klist.c

index d70beede5d22a45a37053051cf6264ef77a0210f..cb5850caa46156eb352e0ddc77603870a9fb92ff 100644 (file)
@@ -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;