use krb5_keytype_to_enctypes to be MIT-compatible

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4184 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-12-11 06:35:36 +00:00
parent 01b88fdcf4
commit b2593f7032

View File

@@ -113,19 +113,19 @@ init_tgs_req (krb5_context context,
t->pvno = 5;
t->msg_type = krb_tgs_req;
if (in_creds->session.keytype) {
krb5_enctype foo[2];
krb5_enctype *foo;
ret = krb5_keytype_to_etype(context,
in_creds->session.keytype,
&foo[0]);
if(ret)
ret = krb5_keytype_to_etypes(context,
in_creds->session.keytype,
&foo);
if (ret)
return ret;
foo[1] = 0;
ret = krb5_init_etype(context,
&t->req_body.etype.len,
&t->req_body.etype.val,
foo);
free (foo);
} else {
ret = krb5_init_etype(context,
&t->req_body.etype.len,