From c7ceb874c28c0cae77870629f492d61340384944 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 14 May 2002 16:51:00 +0000 Subject: sm/ * gpgsm.c: New option --faked-system-time * sign.c (gpgsm_sign): And use it here. * certpath.c (gpgsm_validate_path): Ditto. common/ * gettime.c: New. agent/ * cache.c (housekeeping, agent_put_cache): Use our time() wrapper. / * doc/: New * configure.ac, Makefile.am: Added doc/ --- common/util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/util.h') diff --git a/common/util.h b/common/util.h index ff20bfe15..72c847e99 100644 --- a/common/util.h +++ b/common/util.h @@ -22,6 +22,7 @@ #define GNUPG_COMMON_UTIL_H #include /* we need this for the memory function protos */ +#include /* we need time_t */ /* to pass hash functions to libksba we need to cast it */ #define HASH_FNC ((void (*)(void *, const void*,size_t))gcry_md_write) @@ -55,6 +56,12 @@ int map_kbx_err (int err); int map_assuan_err (int err); int map_to_assuan_status (int rc); +/*-- gettime.c --*/ +time_t gnupg_get_time (void); +void gnupg_set_time (time_t newtime, int freeze); +int gnupg_faked_time_p (void); + + /*-- replacement functions from funcname.c --*/ #if !HAVE_VASPRINTF #include -- cgit v1.2.3