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:
		| @@ -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; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund