From e5af401fc4c3294de9a4f10630b200185329230b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 1 Mar 2021 09:46:59 +0100 Subject: [PATCH] sm: Silence some other pkcs#12 import prattle * sm/minip12.c (parse_bag_data): Print a regular log_info only in verbose mode. -- --- sm/minip12.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sm/minip12.c b/sm/minip12.c index e1e1bce08..9096f0bf1 100644 --- a/sm/minip12.c +++ b/sm/minip12.c @@ -1389,8 +1389,9 @@ parse_bag_data (const unsigned char *buffer, size_t length, int startoffset, if (ti.class || ti.tag != TAG_OCTET_STRING || !ti.length ) goto bailout; - log_info ("%lu bytes of %s encrypted text\n", - ti.length, is_pbes2? "AES128":"3DES"); + if (opt_verbose) + log_info ("%lu bytes of %s encrypted text\n", + ti.length, is_pbes2? "AES128":"3DES"); plain = gcry_malloc_secure (ti.length); if (!plain)