From: Chris Provenzano Date: Sat, 28 Jan 1995 20:03:24 +0000 (+0000) Subject: Use new API for krb5_kt_get_entry() X-Git-Tag: krb5-1.0-beta5~792 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cbc0133e6de8e2ffcb2fc0763d57ba69774a7c62;p=krb5.git Use new API for krb5_kt_get_entry() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4863 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 14fbd7e9c..9e91d4c56 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -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 * main.c (main): If gethostbyname returns an error, exit after diff --git a/src/clients/ksu/krb_auth_su.c b/src/clients/ksu/krb_auth_su.c index d7deb500b..20f4da6f4 100644 --- a/src/clients/ksu/krb_auth_su.c +++ b/src/clients/ksu/krb_auth_su.c @@ -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; }