aboutsummaryrefslogtreecommitdiffstats
path: root/sm/decrypt.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-08-20 13:09:53 +0000
committerWerner Koch <[email protected]>2002-08-20 13:09:53 +0000
commite18e3875b75617a15cae196afe1434a5b37766ed (patch)
tree984de79cff99c339e6e70740edc2c38a364e333f /sm/decrypt.c
parent* DETAILS: Clarify that trust letters 'q' and '-' can be treated (diff)
downloadgnupg-e18e3875b75617a15cae196afe1434a5b37766ed.tar.gz
gnupg-e18e3875b75617a15cae196afe1434a5b37766ed.zip
* gpgsm.c (main): Use the log file only in server mode.
* import.c (print_imported_summary): New. (check_and_store): Update the counters, take new argument. (import_one): Factored out core of gpgsm_import. (gpgsm_import): Print counters. (gpgsm_import_files): New. * gpgsm.c (main): Use the new function for import.
Diffstat (limited to '')
-rw-r--r--sm/decrypt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sm/decrypt.c b/sm/decrypt.c
index 44cb54416..012254e22 100644
--- a/sm/decrypt.c
+++ b/sm/decrypt.c
@@ -327,12 +327,15 @@ gpgsm_decrypt (CTRL ctrl, int in_fd, FILE *out_fp)
mode = gcry_cipher_mode_from_oid (algoid);
if (!algo || !mode)
{
+ rc = GNUPG_Unsupported_Algorithm;
log_error ("unsupported algorithm `%s'\n", algoid? algoid:"?");
if (algoid && !strcmp (algoid, "1.2.840.113549.3.2"))
log_info (_("(this is the RC2 algorithm)\n"));
+ else if (!algoid)
+ log_info (_("(this does not seem to be an encrypted"
+ " message)\n"));
gpgsm_status2 (ctrl, STATUS_ERROR, "decrypt.algorithm",
- gnupg_error_token (rc), algoid, NULL);
- rc = GNUPG_Unsupported_Algorithm;
+ gnupg_error_token (rc), algoid?algoid:"?", NULL);
goto leave;
}
dfparm.algo = algo;