aboutsummaryrefslogtreecommitdiffstats
path: root/sm/verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/verify.c')
-rw-r--r--sm/verify.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sm/verify.c b/sm/verify.c
index 410e86de7..f37cf4a75 100644
--- a/sm/verify.c
+++ b/sm/verify.c
@@ -179,8 +179,14 @@ gpgsm_verify (CTRL ctrl, int in_fd, int data_fd, FILE *out_fp)
{
algo = gcry_md_map_name (algoid);
if (!algo)
- log_error ("unknown hash algorithm `%s'\n",
- algoid? algoid:"?");
+ {
+ log_error ("unknown hash algorithm `%s'\n",
+ algoid? algoid:"?");
+ if (algoid
+ && ( !strcmp (algoid, "1.2.840.113549.1.1.2")
+ ||!strcmp (algoid, "1.2.840.113549.2.2")))
+ log_info (_("(this is the MD2 algorithm)\n"));
+ }
else
gcry_md_enable (data_md, algo);
}