sm: Silence some other pkcs#12 import prattle

* sm/minip12.c (parse_bag_data): Print a regular log_info only in
verbose mode.
--
This commit is contained in:
Werner Koch 2021-03-01 09:46:59 +01:00
parent b8998e5ee0
commit e5af401fc4
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 3 additions and 2 deletions

View File

@ -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)