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:
		@@ -226,7 +226,16 @@ krb5_get_in_tkt(krb5_context context,
 | 
				
			|||||||
    krb5_principal2principalname (a.req_body.sname, creds->server);
 | 
					    krb5_principal2principalname (a.req_body.sname, creds->server);
 | 
				
			||||||
    copy_Realm(&creds->client->realm, &a.req_body.realm);
 | 
					    copy_Realm(&creds->client->realm, &a.req_body.realm);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /* 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;
 | 
					    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_generate_random_block (&a.req_body.nonce, sizeof(a.req_body.nonce));
 | 
				
			||||||
    krb5_init_etype (context,
 | 
					    krb5_init_etype (context,
 | 
				
			||||||
		     &a.req_body.etype.len,
 | 
							     &a.req_body.etype.len,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user