From 78e8e4627ea862fddab745c0bec25da525207ea1 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 6 Feb 2000 05:21:53 +0000 Subject: [PATCH] (krb5_timeofday): use `krb5_timestamp' instead of `int32_t' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7859 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/time.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/krb5/time.c b/lib/krb5/time.c index 03875c2c2..3d47260e0 100644 --- a/lib/krb5/time.c +++ b/lib/krb5/time.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997 Kungliga Tekniska Högskolan + * Copyright (c) 1997 - 2000 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -35,14 +35,22 @@ RCSID("$Id$"); +/* + * return ``corrected'' time in `timeret'. + */ + krb5_error_code krb5_timeofday (krb5_context context, - int32_t *timeret) + krb5_timestamp *timeret) { *timeret = time(NULL) + context->kdc_sec_offset; return 0; } +/* + * like gettimeofday but with time correction to the KDC + */ + krb5_error_code krb5_us_timeofday (krb5_context context, int32_t *sec,