aboutsummaryrefslogtreecommitdiffstats
path: root/sm/verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/verify.c')
-rw-r--r--sm/verify.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/sm/verify.c b/sm/verify.c
index 412f722d7..569af8b84 100644
--- a/sm/verify.c
+++ b/sm/verify.c
@@ -365,8 +365,13 @@ gpgsm_verify (CTRL ctrl, int in_fd, int data_fd, FILE *out_fp)
else
log_error ("failed to find the certificate: %s\n",
gnupg_strerror(rc));
- gpgsm_status2 (ctrl, STATUS_ERROR, "verify.findkey",
- gnupg_error_token (rc), NULL);
+ {
+ char numbuf[50];
+ sprintf (numbuf, "%d", rc);
+
+ gpgsm_status2 (ctrl, STATUS_ERROR, "verify.findkey",
+ numbuf, NULL);
+ }
/* fixme: we might want to append the issuer and serial
using our standard notation */
goto next_signer;
@@ -533,8 +538,13 @@ gpgsm_verify (CTRL ctrl, int in_fd, int data_fd, FILE *out_fp)
fclose (fp);
if (rc)
- gpgsm_status2 (ctrl, STATUS_ERROR, "verify.leave",
- gnupg_error_token (rc), NULL);
+ {
+ char numbuf[50];
+ sprintf (numbuf, "%d", rc );
+ gpgsm_status2 (ctrl, STATUS_ERROR, "verify.leave",
+ numbuf, NULL);
+ }
+
return rc;
}