diff options
author | Werner Koch <wk@gnupg.org> | 2002-05-14 18:51:00 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-05-14 18:51:00 +0200 |
commit | c7ceb874c28c0cae77870629f492d61340384944 (patch) | |
tree | c01b633e889a6a2b3e32d56bf4a5ccb492602863 /common/util.h | |
parent | * errors.h: Added STARUS_EXPSIG and STATUS_EXPKEYSIG. (diff) | |
download | gnupg2-c7ceb874c28c0cae77870629f492d61340384944.tar.xz gnupg2-c7ceb874c28c0cae77870629f492d61340384944.zip |
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/
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <gcrypt.h> /* we need this for the memory function protos */ +#include <time.h> /* 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 <stdarg.h> |