Skip to content

Commit

Permalink
doveconf: hide ssl_key without -P
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and sirainen committed Sep 12, 2016
1 parent 8d41c2d commit 5affc31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/doveconf.c
Expand Up @@ -304,7 +304,8 @@ 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)) {
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);
Expand Down

0 comments on commit 5affc31

Please sign in to comment.