[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting enctype in tickets



Daniel Kouril <kouril@ics.muni.cz> writes:

> After looking at the kgetcred source, I think two various types are mixed
> there. 

This is beacuse the notion of keytypes vs enctypes that exist in
rfc1510 doesn't work well in practice, so the keytypes are mostly
gone. We should probably have changed this function a long time
ago. Try this patch.

/Johan

--- get_cred.c	2001/07/03 18:45:03	1.87
+++ get_cred.c	2001/10/05 11:53:47
@@ -179,10 +179,8 @@
     t->pvno = 5;
     t->msg_type = krb_tgs_req;
     if (in_creds->session.keytype) {
-	ret = krb5_keytype_to_enctypes_default (context,
-						in_creds->session.keytype,
-						&t->req_body.etype.len,
-						&t->req_body.etype.val);
+	ALLOC_SEQ(t->req_body.etype, 1);
+	t->req_body.etype.val[0] = in_cred->session.keytype;
     } else {
 	ret = krb5_init_etype(context, 
 			      &t->req_body.etype.len,