actually pay attention to `time_req'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9009 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -284,6 +284,12 @@ init_auth
|
||||
memset(&this_cred, 0, sizeof(this_cred));
|
||||
this_cred.client = (*context_handle)->source;
|
||||
this_cred.server = (*context_handle)->target;
|
||||
if (time_req) {
|
||||
krb5_timestamp ts;
|
||||
|
||||
krb5_timeofday (gssapi_krb5_context, &ts);
|
||||
this_cred.times.endtime = ts + time_req;
|
||||
} else
|
||||
this_cred.times.endtime = 0;
|
||||
this_cred.session.keytype = 0;
|
||||
|
||||
|
@@ -284,6 +284,12 @@ init_auth
|
||||
memset(&this_cred, 0, sizeof(this_cred));
|
||||
this_cred.client = (*context_handle)->source;
|
||||
this_cred.server = (*context_handle)->target;
|
||||
if (time_req) {
|
||||
krb5_timestamp ts;
|
||||
|
||||
krb5_timeofday (gssapi_krb5_context, &ts);
|
||||
this_cred.times.endtime = ts + time_req;
|
||||
} else
|
||||
this_cred.times.endtime = 0;
|
||||
this_cred.session.keytype = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user