Use new API for krb5_kt_get_entry()
authorChris Provenzano <proven@mit.edu>
Sat, 28 Jan 1995 20:03:24 +0000 (20:03 +0000)
committerChris Provenzano <proven@mit.edu>
Sat, 28 Jan 1995 20:03:24 +0000 (20:03 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4863 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/ksu/ChangeLog
src/clients/ksu/krb_auth_su.c

index 14fbd7e9ca0394dce1805a2e8d3ec7c48ed1c8d9..9e91d4c5689603ecc36396dce033a60dc5676d78 100644 (file)
@@ -1,3 +1,8 @@
+Sat Jan 28 14:45:55 1995  Chris Provenzano (proven@mit.edu)
+
+        * krb_auth_su.c (krb5_verify_tkt_def()) use new API for 
+               krb5_kt_get_entry.
+
 Wed Jan 18 12:21:30 1995    <tytso@rsx-11.mit.edu>
 
        * main.c (main): If gethostbyname returns an error, exit after
index d7deb500ba85c0ac82da0c7f123106326c8a233a..20f4da6f4cd879da7e308df7732cf57f06cfcc89 100644 (file)
@@ -277,6 +277,7 @@ krb5_verify_tkt_def(context, client, server, cred_ses_key,
     krb5_ticket **clear_ticket;
 {
 krb5_keytab keytabid;
+krb5_keytype keytype;
 krb5_keytab_entry ktentry;
 krb5_keyblock *tkt_key = NULL;
 krb5_ticket * tkt = NULL;
@@ -303,8 +304,11 @@ krb5_keyblock *    tkt_ses_key;
                return retval;
        }
 
+       /* We have the encryption type get the keytpe. */
+       keytype = krb5_csarray[tkt->enc_part.etype]->system->proto_keytype;
+
        if (retval = krb5_kt_get_entry(context, keytabid, server,
-                                      tkt->enc_part.kvno, &ktentry)){
+                                      tkt->enc_part.kvno, keytype, &ktentry)){
                krb5_free_ticket(context, tkt); 
                return retval;
        }