1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

* sign.c (gpgsm_sign): Print an error message on all failures.

* decrypt.c (gpgsm_decrypt): Ditto.
This commit is contained in:
Werner Koch 2004-01-16 17:42:36 +00:00
parent 30948e5ecd
commit 4dc78204ae
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-01-16 Werner Koch <wk@gnupg.org>
* sign.c (gpgsm_sign): Print an error message on all failures.
* decrypt.c (gpgsm_decrypt): Ditto.
2003-12-17 Werner Koch <wk@gnupg.org>
* server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.

View File

@ -482,7 +482,10 @@ gpgsm_decrypt (CTRL ctrl, int in_fd, FILE *out_fp)
leave:
if (rc)
{
gpgsm_status (ctrl, STATUS_DECRYPTION_FAILED, NULL);
log_error ("message decryption failed: %s\n", gpg_strerror (rc));
}
ksba_cms_release (cms);
gpgsm_destroy_reader (b64reader);
gpgsm_destroy_writer (b64writer);

View File

@ -622,6 +622,8 @@ gpgsm_sign (CTRL ctrl, CERTLIST signerlist,
leave:
if (rc)
log_error ("error creating signature: %s\n", gpg_strerror (rc));
if (release_signerlist)
gpgsm_release_certlist (signerlist);
ksba_cms_release (cms);