From: Chris Provenzano Date: Sat, 28 Jan 1995 20:10:27 +0000 (+0000) Subject: in_tkt_sky.c (skey_keyproc()), rd_req_dec.c (krb5_rd_req_decoded()) X-Git-Tag: krb5-1.0-beta5~787 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=97d7de16ce04bc492fe0e408544f7f3007fda9c4;p=krb5.git in_tkt_sky.c (skey_keyproc()), rd_req_dec.c (krb5_rd_req_decoded()) use new API for krb5_kt_get_entry. get_fcreds.c Removed #include and #include git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4868 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 6a4d7b6f7..1eff8d70f 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,12 @@ +Sat Jan 28 14:45:55 1995 Chris Provenzano (proven@mit.edu) + + * in_tkt_sky.c (skey_keyproc()), rd_req_dec.c (krb5_rd_req_decoded()) + use new API for krb5_kt_get_entry. + +Fri Jan 27 15:45:45 1995 Chris Provenzano (proven@mit.edu) + + * get_fcreds.c Removed #include and #include + Wed Jan 25 16:54:40 1995 Chris Provenzano (proven@mit.edu) * Removed all narrow types and references to wide.h and narrow.h diff --git a/src/lib/krb5/krb/get_fcreds.c b/src/lib/krb5/krb/get_fcreds.c index a520e5aff..7b771965b 100644 --- a/src/lib/krb5/krb/get_fcreds.c +++ b/src/lib/krb5/krb/get_fcreds.c @@ -1,5 +1,5 @@ /* - * lib/krb5/krb/mk_cred.c + * lib/krb5/krb/get_fcreds.c * * Copyright 1994 by the Massachusetts Institute of Technology. * All Rights Reserved. @@ -20,7 +20,7 @@ * this software for any purpose. It is provided "as is" without express * or implied warranty. * - * krb5_mk_cred() + * krb5_get_for_creds() */ /* XXX This API is going to change; what's here isn't general enough! XXX */ @@ -35,8 +35,6 @@ #include #include -#include -#include #include #include diff --git a/src/lib/krb5/krb/in_tkt_sky.c b/src/lib/krb5/krb/in_tkt_sky.c index cc9a89bc3..f61845857 100644 --- a/src/lib/krb5/krb/in_tkt_sky.c +++ b/src/lib/krb5/krb/in_tkt_sky.c @@ -65,6 +65,7 @@ skey_keyproc(context, type, key, keyseed, padata) return retval; if (retval = krb5_kt_get_entry(context, kt_id, arg->client, 0, /* don't have vno available */ + type, &kt_ent)) return retval; } diff --git a/src/lib/krb5/krb/rd_req_dec.c b/src/lib/krb5/krb/rd_req_dec.c index cad8f99b8..93b729aea 100644 --- a/src/lib/krb5/krb/rd_req_dec.c +++ b/src/lib/krb5/krb/rd_req_dec.c @@ -111,8 +111,16 @@ krb5_rd_req_decoded(context, req, server, sender_addr, fetchfrom, keyproc, retval = krb5_kt_default(context, &keytabid); } if (!retval) { + /* + * OK we know the encryption type req->ticket->enc_part.etype, + * and now we need to get the keytype + */ + krb5_keytype keytype = krb5_csarray[req->ticket->enc_part.etype]-> + system->proto_keytype; + retval = krb5_kt_get_entry(context, keytabid, req->ticket->server, - req->ticket->enc_part.kvno, &ktentry); + req->ticket->enc_part.kvno, keytype, + &ktentry); (void) krb5_kt_close(context, keytabid); if (!retval) { retval = krb5_copy_keyblock(context, &ktentry.key, &tkt_key);