diff options
author | Werner Koch <wk@gnupg.org> | 2002-07-22 12:23:10 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-07-22 12:23:10 +0200 |
commit | 9f8fef65caccbf7377cfa8381c2fb0bb874e66ff (patch) | |
tree | e068bf02f38722dc713f157c63bd620632f81109 /sm/decrypt.c | |
parent | * keybox-defs.h: New BLOBTYPTE_EMPTY. (diff) | |
download | gnupg2-9f8fef65caccbf7377cfa8381c2fb0bb874e66ff.tar.xz gnupg2-9f8fef65caccbf7377cfa8381c2fb0bb874e66ff.zip |
* delete.c: New.
* gpgsm.c: Made --delete-key work.
* server.c (cmd_delkeys): New.
(register_commands): New command DELKEYS.
* decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
used and a STATUS_ERROR with the algorithm oid.
Diffstat (limited to 'sm/decrypt.c')
-rw-r--r-- | sm/decrypt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sm/decrypt.c b/sm/decrypt.c index ccbcae2a6..a793bbbef 100644 --- a/sm/decrypt.c +++ b/sm/decrypt.c @@ -320,6 +320,10 @@ gpgsm_decrypt (CTRL ctrl, int in_fd, FILE *out_fp) if (!algo || !mode) { 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")); + gpgsm_status2 (ctrl, STATUS_ERROR, "decrypt.algorithm", + gnupg_error_token (rc), algoid, NULL); rc = GNUPG_Unsupported_Algorithm; goto leave; } |