diff options
author | Werner Koch <[email protected]> | 2007-12-06 15:55:03 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-12-06 15:55:03 +0000 |
commit | 89671cdd6425e0c2247bd02c7ce6bb2f6339f94d (patch) | |
tree | df62d4ec104e82ffce7f163e357d3e9ab45d81c0 /sm/verify.c | |
parent | Created help files form the current po entries. (diff) | |
download | gnupg-89671cdd6425e0c2247bd02c7ce6bb2f6339f94d.tar.gz gnupg-89671cdd6425e0c2247bd02c7ce6bb2f6339f94d.zip |
More code for the audit log.
Diffstat (limited to '')
-rw-r--r-- | sm/verify.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sm/verify.c b/sm/verify.c index b0ced0062..2a455a5ce 100644 --- a/sm/verify.c +++ b/sm/verify.c @@ -184,7 +184,10 @@ gpgsm_verify (ctrl_t ctrl, int in_fd, int data_fd, FILE *out_fp) if (stopreason == KSBA_SR_NEED_HASH || stopreason == KSBA_SR_BEGIN_DATA) - { /* We are now able to enable the hash algorithms */ + { + audit_log (ctrl->audit, AUDIT_GOT_DATA); + + /* We are now able to enable the hash algorithms */ for (i=0; (algoid=ksba_cms_get_digest_algo_list (cms, i)); i++) { algo = gcry_md_map_name (algoid); @@ -535,6 +538,7 @@ gpgsm_verify (ctrl_t ctrl, int in_fd, int data_fd, FILE *out_fp) xfree (buf); } + audit_log_ok (ctrl->audit, AUDIT_CHAIN_STATUS, rc); if (rc) /* of validate_chain */ { log_error ("invalid certification chain: %s\n", gpg_strerror (rc)); |