Pass starttime and renew_till in request (a bit kludgy).

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2413 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-07-17 22:57:59 +00:00
parent e10934272c
commit f332bca6ac

View File

@@ -226,7 +226,16 @@ krb5_get_in_tkt(krb5_context context,
krb5_principal2principalname (a.req_body.sname, creds->server);
copy_Realm(&creds->client->realm, &a.req_body.realm);
a.req_body.till = creds->times.endtime;
/* XXX */
if(creds->times.starttime){
a.req_body.from = malloc(sizeof(*a.req_body.from));
*a.req_body.from = creds->times.starttime;
}
a.req_body.till = creds->times.endtime;
if(creds->times.renew_till){
a.req_body.rtime = malloc(sizeof(*a.req_body.rtime));
*a.req_body.rtime = creds->times.renew_till;
}
krb5_generate_random_block (&a.req_body.nonce, sizeof(a.req_body.nonce));
krb5_init_etype (context,
&a.req_body.etype.len,