summaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-03-24 10:46:21 +0100
committerWerner Koch <wk@gnupg.org>2021-03-24 12:27:35 +0100
commit5346da61c14d79fed49171800b487caebbb511c1 (patch)
tree2f5d83a561843f1530d474265c8dc9f321a307d1 /g10
parentgpg: Fix v5 signature for clearsign. (diff)
downloadgnupg2-5346da61c14d79fed49171800b487caebbb511c1.tar.xz
gnupg2-5346da61c14d79fed49171800b487caebbb511c1.zip
gpg: No warning in quiet mode for S2K mode 0.
--
Diffstat (limited to 'g10')
-rw-r--r--g10/gpg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 4ab5ba1b0..9d64fa5d8 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -3906,7 +3906,8 @@ main (int argc, char **argv)
log_error(_("invalid min-cert-level; must be 1, 2, or 3\n"));
switch( opt.s2k_mode ) {
case 0:
- log_info(_("Note: simple S2K mode (0) is strongly discouraged\n"));
+ if (!opt.quiet)
+ log_info(_("Note: simple S2K mode (0) is strongly discouraged\n"));
break;
case 1: case 3: break;
default: