summaryrefslogtreecommitdiff
path: root/src/wx/config_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-15 12:48:15 +0000
committerCarl Hetherington <cth@carlh.net>2019-03-15 12:48:15 +0000
commit627cf204ede4204b58c385c30e82561cfc93d28c (patch)
treea96dc5aa5babcd355b7d3e08d77d50dff4cbfe41 /src/wx/config_dialog.cc
parent835fd0fd7ee052edc001ac8fe3c928d1de7367e8 (diff)
Warn on importing complete certificate chains (part of #1488).
Diffstat (limited to 'src/wx/config_dialog.cc')
-rw-r--r--src/wx/config_dialog.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc
index 13a405670..a32b5d968 100644
--- a/src/wx/config_dialog.cc
+++ b/src/wx/config_dialog.cc
@@ -841,6 +841,16 @@ KeysPage::export_decryption_chain_and_key ()
void
KeysPage::import_decryption_chain_and_key ()
{
+ if (NagDialog::maybe_nag (
+ _panel,
+ Config::NAG_IMPORT_DECRYPTION_CHAIN,
+ /* XXX: this needs to be marked translatable */
+ wxT("If you continue with this operation you will no longer be able to use any DKDMs that you have created with the current certificates and key. Also, any KDMs that have been sent to you for those certificates will become useless. Proceed with caution!"),
+ true
+ )) {
+ return;
+ }
+
wxFileDialog* d = new wxFileDialog (
_panel, _("Select File To Import"), wxEmptyString, wxEmptyString, wxT ("DOM files (*.dom)|*.dom")
);