now, kinit and klist seems to work

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@845 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-10-14 02:51:14 +00:00
parent b55aed018f
commit f048b264d9
8 changed files with 74 additions and 14 deletions

View File

@@ -224,7 +224,8 @@ ret_principal(int fd,
p = ALLOC(1, krb5_principal_data);
ret_int32(fd, &p->type);
if(ret_int32(fd, &p->type))
return -1;
ret_int32(fd, &p->ncomp);
ret_data(fd, &p->realm);
p->comp = ALLOC(p->ncomp, krb5_data);

View File

@@ -179,7 +179,7 @@ krb5_get_in_tkt(krb5_context context,
if (err) {
return err;
}
if(decode_AS_REP(resp.data, resp.length, &rep) < 0)
if(decode_AS_REP(resp.data, resp.length, &rep.part1) < 0)
return ASN1_PARSE_ERROR;
free (rep.part1.crealm);
@@ -213,6 +213,8 @@ krb5_get_in_tkt(krb5_context context,
decrypt_proc = decrypt_tkt;
err = (*decrypt_proc)(context, key, decryptarg, &rep);
if (err)
return err;
memset (key->contents.data, 0, key->contents.length);
krb5_data_free (&key->contents);
free (key);