(gss_accept_sec_context): make sure time is returned in seconds from

now, not in kerberos time


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12347 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-06-03 15:25:41 +00:00
parent a704e2f3f4
commit 63b7fe118d
2 changed files with 14 additions and 4 deletions

View File

@@ -383,8 +383,13 @@ gss_accept_sec_context
if (mech_type)
*mech_type = GSS_KRB5_MECHANISM;
if (time_rec)
*time_rec = (*context_handle)->lifetime;
if (time_rec) {
ret = gssapi_lifetime_left(minor_status,
(*context_handle)->lifetime,
time_rec);
if (ret)
goto failure;
}
if(flags & GSS_C_MUTUAL_FLAG) {
krb5_data outbuf;