use new API for krb5_kt_get_entry.
get_fcreds.c Removed #include<krb5/crc-32.h> and #include<krb5/asn1.h>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4868
dc483132-0cff-0310-8789-
dd5450dbe970
+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<krb5/crc-32.h> and #include<krb5/asn1.h>
+
Wed Jan 25 16:54:40 1995 Chris Provenzano (proven@mit.edu)
* Removed all narrow types and references to wide.h and narrow.h
/*
- * lib/krb5/krb/mk_cred.c
+ * lib/krb5/krb/get_fcreds.c
*
* Copyright 1994 by the Massachusetts Institute of Technology.
* All Rights Reserved.
* 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 */
#include <netdb.h>
#include <krb5/krb5.h>
-#include <krb5/asn1.h>
-#include <krb5/crc-32.h>
#include <krb5/los-proto.h>
#include <krb5/ext-proto.h>
return retval;
if (retval = krb5_kt_get_entry(context, kt_id, arg->client,
0, /* don't have vno available */
+ type,
&kt_ent))
return retval;
}
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);