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:
Assar Westerlund
1997-08-11 23:35:31 +00:00
parent 098bd34b7d
commit 6fd5ea4f86
10 changed files with 55 additions and 41 deletions

View File

@@ -52,15 +52,15 @@ krb5_mk_error(krb5_context context,
{
KRB_ERROR msg;
unsigned char buf[1024];
struct timeval tv;
int32_t sec, usec;
krb5_us_timeofday (context, &sec, &usec);
gettimeofday (&tv, NULL);
memset(&msg, 0, sizeof(msg));
msg.pvno = 5;
msg.msg_type = krb_error;
msg.stime = tv.tv_sec;
msg.susec = tv.tv_usec;
msg.stime = sec;
msg.susec = usec;
if(ctime) {
msg.ctime = &ctime;
}