]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: hide ssl_key and ssl_dh without -P
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 16 Aug 2016 09:28:27 +0000 (12:28 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 16 Aug 2016 12:38:50 +0000 (15:38 +0300)
src/config/doveconf.c

index 63ae419855754630927f960f3f88222c4bdcef1f..93601583e694fa4693bf06fcfc801522d8eeb5a3 100644 (file)
@@ -304,7 +304,9 @@ config_dump_human_output(struct config_dump_human_context *ctx,
                o_stream_nsend(output, key, value-key);
                o_stream_nsend_str(output, " = ");
                if (hide_passwords && value[1] != '\0' &&
-                   value-key > 9 && strncmp(value-9, "_password", 9) == 0) {
+                   ((value-key > 9 && strncmp(value-9, "_password", 9) == 0) ||
+                    strncmp(key, "ssl_key",7) == 0 ||
+                    strncmp(key, "ssl_dh",6) == 0))  {
                        o_stream_nsend_str(output, " # hidden, use -P to show it");
                } else if (!value_need_quote(value+1))
                        o_stream_nsend_str(output, value+1);