(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
This commit is contained in:
@@ -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).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -35,14 +35,22 @@
|
|||||||
|
|
||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
|
/*
|
||||||
|
* return ``corrected'' time in `timeret'.
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code
|
krb5_error_code
|
||||||
krb5_timeofday (krb5_context context,
|
krb5_timeofday (krb5_context context,
|
||||||
int32_t *timeret)
|
krb5_timestamp *timeret)
|
||||||
{
|
{
|
||||||
*timeret = time(NULL) + context->kdc_sec_offset;
|
*timeret = time(NULL) + context->kdc_sec_offset;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* like gettimeofday but with time correction to the KDC
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code
|
krb5_error_code
|
||||||
krb5_us_timeofday (krb5_context context,
|
krb5_us_timeofday (krb5_context context,
|
||||||
int32_t *sec,
|
int32_t *sec,
|
||||||
|
Reference in New Issue
Block a user