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:
@@ -113,19 +113,19 @@ init_tgs_req (krb5_context context,
|
|||||||
t->pvno = 5;
|
t->pvno = 5;
|
||||||
t->msg_type = krb_tgs_req;
|
t->msg_type = krb_tgs_req;
|
||||||
if (in_creds->session.keytype) {
|
if (in_creds->session.keytype) {
|
||||||
krb5_enctype foo[2];
|
krb5_enctype *foo;
|
||||||
|
|
||||||
ret = krb5_keytype_to_etype(context,
|
ret = krb5_keytype_to_etypes(context,
|
||||||
in_creds->session.keytype,
|
in_creds->session.keytype,
|
||||||
&foo[0]);
|
&foo);
|
||||||
if(ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
foo[1] = 0;
|
|
||||||
|
|
||||||
ret = krb5_init_etype(context,
|
ret = krb5_init_etype(context,
|
||||||
&t->req_body.etype.len,
|
&t->req_body.etype.len,
|
||||||
&t->req_body.etype.val,
|
&t->req_body.etype.val,
|
||||||
foo);
|
foo);
|
||||||
|
free (foo);
|
||||||
} else {
|
} else {
|
||||||
ret = krb5_init_etype(context,
|
ret = krb5_init_etype(context,
|
||||||
&t->req_body.etype.len,
|
&t->req_body.etype.len,
|
||||||
|
Reference in New Issue
Block a user