1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

tests: Check expiration times of created keys.

* tests/gpgscm/ffi.c (do_get_time): New function.
(ffi_init): Expose new function.
* tests/gpgscm/ffi.scm (get-time): Document new function.
* tests/gpgscm/time.scm: New file.
* tests/openpgp/quick-key-manipulation.scm: Use the new facilities to
check the expiration times of created keys.
* tests/openpgp/tofu.scm: Use the new module.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2017-02-15 14:50:44 +01:00
parent e2792813a5
commit 127e1e532d
No known key found for this signature in database
GPG key ID: DD1A52F9DA8C9020
5 changed files with 72 additions and 9 deletions

View file

@ -47,3 +47,6 @@
;; Low-level mechanism to terminate the process.
(ffi-define (_exit status))
;; Get the current time in seconds since the epoch.
(ffi-define (get-time))