use krb5_timeofday and krb5_us_timeofday
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2927 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -58,9 +58,13 @@ krb5_build_authenticator (krb5_context context,
|
||||
copy_Realm(&cred->client->realm, &auth->crealm);
|
||||
copy_PrincipalName(&cred->client->name, &auth->cname);
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
auth->cusec = tv.tv_usec;
|
||||
auth->ctime = tv.tv_sec;
|
||||
{
|
||||
int32_t sec, usec;
|
||||
|
||||
krb5_us_timeofday (context, &sec, &usec);
|
||||
auth->ctime = sec;
|
||||
auth->cusec = usec;
|
||||
}
|
||||
#if 0
|
||||
auth->subkey = NULL;
|
||||
#else
|
||||
|
Reference in New Issue
Block a user