(init_tgs_req): use in_creds->session.keytype literally instead of
trying to convert to a list of enctypes (it should already be an enctype) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11366 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -179,10 +179,13 @@ 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) {
|
||||||
ret = krb5_keytype_to_enctypes_default (context,
|
ALLOC_SEQ(&t->req_body.etype, 1);
|
||||||
in_creds->session.keytype,
|
if(t->req_body.etype.val == NULL) {
|
||||||
&t->req_body.etype.len,
|
ret = ENOMEM;
|
||||||
&t->req_body.etype.val);
|
krb5_set_error_string(context, "malloc: out of memory");
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
t->req_body.etype.val[0] = in_creds->session.keytype;
|
||||||
} 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