aboutsummaryrefslogtreecommitdiff
path: root/src/ui_interface.h
diff options
context:
space:
mode:
authorMark Friedenbach <mark@blockstream.io>2014-10-16 16:16:29 -0700
committerMark Friedenbach <mark@blockstream.io>2014-10-17 00:33:31 -0700
commitd4746d56c0c45b8721da36bc19b2bdaba5d7d094 (patch)
tree01304911064e6f0ccce518ab2d7456b89681d0c4 /src/ui_interface.h
parente8f6d54f1f58d9a5998e37367b84b427e51e1ad7 (diff)
Add a SECURE style flag for ThreadSafeMessageBox, which indicates that the message contains sensitive information. This keeps the message from being output to the debug log by bitcoind. Fixes a possible security risk when starting bitcoind in server mode without the 'rpcpassword' option configured, resulting in the "suggested" password being output to the debug log.
Diffstat (limited to 'src/ui_interface.h')
-rw-r--r--src/ui_interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui_interface.h b/src/ui_interface.h
index f5224ba57d..1231d5ed0b 100644
--- a/src/ui_interface.h
+++ b/src/ui_interface.h
@@ -63,6 +63,9 @@ public:
/** Force blocking, modal message box dialog (not just OS notification) */
MODAL = 0x10000000U,
+ /** Do not print contents of message to debug log */
+ SECURE = 0x40000000U,
+
/** Predefined combinations for certain default usage cases */
MSG_INFORMATION = ICON_INFORMATION,
MSG_WARNING = (ICON_WARNING | BTN_OK | MODAL),