* kdb5_verify.c : Remove krb5_enctype references, and replace with
authorChris Provenzano <proven@mit.edu>
Wed, 6 Sep 1995 03:47:59 +0000 (03:47 +0000)
committerChris Provenzano <proven@mit.edu>
Wed, 6 Sep 1995 03:47:59 +0000 (03:47 +0000)
                krb5_keytype where appropriate

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

src/tests/verify/ChangeLog
src/tests/verify/kdb5_verify.c

index 0dfb6fa70a9cc01f2910bf0a82c96c0a1016fb94..567d7120de1d07d32401f192814d8d8b50b162c8 100644 (file)
@@ -1,3 +1,7 @@
+Tue Sep 05 22:10:34 1995   Chris Provenzano (proven@mit.edu)
+
+        * kdb5_verify.c : Remove krb5_enctype references, and replace with
+                krb5_keytype where appropriate
 
 Thu Jul 27 15:31:18 EDT 1995   Paul Park       (pjpark@mit.edu)
        * kdb5_verify.c - Restore old logic to find the etype now that crypto-
index 0b66ab336f75870a562d808d99eadecb65a883e8..7e9bcbb4383b63d23d3d2508d75e3923f6c81013 100644 (file)
@@ -56,7 +56,7 @@ int status;
     fprintf(stderr,
            "usage: %s -p prefix -n num_to_check [-d dbpathname] [-r realmname]\n",
            who);
-    fprintf(stderr, "\t [-D depth] [-k keytype] [-e etype] [-M mkeyname]\n");
+    fprintf(stderr, "\t [-D depth] [-k keytype] [-M mkeyname]\n");
 
     exit(status);
 }
@@ -103,7 +103,6 @@ char *argv[];
     krb5_error_code retval;
     char *dbname = 0;
     int keytypedone = 0;
-    krb5_enctype etype = 0xffff;
     register krb5_cryptosystem_entry *csentry;
     int num_to_check;
     char principal_string[BUFSIZ];
@@ -150,9 +149,6 @@ char *argv[];
        case 'M':                       /* master key name in DB */
            mkey_name = optarg;
            break;
-       case 'e':
-           etype = atoi(optarg);
-           break;
        case 'm':
            manual_mkey = TRUE;
            break;
@@ -174,16 +170,7 @@ char *argv[];
        exit(1);
     }
 
-    if (etype == 0xffff)
-       etype = krb5_keytype_array[master_keyblock.keytype]->
-           system->proto_enctype;
-
-    if (!valid_etype(etype)) {
-       com_err(progname, KRB5_PROG_ETYPE_NOSUPP,
-               "while setting up etype %d", etype);
-       exit(1);
-    }
-    krb5_use_cstype(context, &master_encblock, etype);
+    krb5_use_keytype(context, &master_encblock, master_keyblock.keytype);
     csentry = master_encblock.crypto_entry;
 
     if (!dbname)