(gss_aquire_cred): make sure time is returned in seconds from now, not

in kerberos time


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

View File

@@ -306,8 +306,14 @@ OM_uint32 gss_acquire_cred
return (ret); return (ret);
} }
*minor_status = 0; *minor_status = 0;
if (time_rec) if (time_rec) {
*time_rec = handle->lifetime; ret = gssapi_lifetime_left(minor_status,
handle->lifetime,
time_rec);
if (ret)
return ret;
}
handle->usage = cred_usage; handle->usage = cred_usage;
*output_cred_handle = handle; *output_cred_handle = handle;
return (GSS_S_COMPLETE); return (GSS_S_COMPLETE);

View File

@@ -306,8 +306,14 @@ OM_uint32 gss_acquire_cred
return (ret); return (ret);
} }
*minor_status = 0; *minor_status = 0;
if (time_rec) if (time_rec) {
*time_rec = handle->lifetime; ret = gssapi_lifetime_left(minor_status,
handle->lifetime,
time_rec);
if (ret)
return ret;
}
handle->usage = cred_usage; handle->usage = cred_usage;
*output_cred_handle = handle; *output_cred_handle = handle;
return (GSS_S_COMPLETE); return (GSS_S_COMPLETE);