aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to 'g10')
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/mainproc.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 0ba1060be..a9233c1f4 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-31 Werner Koch <[email protected]>
+
+ * mainproc.c (print_pkenc_list): Print a STATUS_ERROR. Fixes
+ bug#1255.
+
2010-07-24 Werner Koch <[email protected]>
* cardglue.c (agent_scd_pksign): Allow more hash algorithms when
diff --git a/g10/mainproc.c b/g10/mainproc.c
index ec5952ebf..f46895d54 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -501,8 +501,16 @@ print_pkenc_list( struct kidlist_item *list, int failed )
}
}
else if (list->reason)
+ {
log_info(_("public key decryption failed: %s\n"),
g10_errstr(list->reason));
+ if (is_status_enabled ())
+ {
+ char buf[20+30];
+ snprintf (buf, sizeof buf, "pkdecrypt_failed %d", list->reason);
+ write_status_text (STATUS_ERROR, buf);
+ }
+ }
}
}