diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-15 12:48:15 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-15 12:48:15 +0000 |
| commit | 627cf204ede4204b58c385c30e82561cfc93d28c (patch) | |
| tree | a96dc5aa5babcd355b7d3e08d77d50dff4cbfe41 /src | |
| parent | 835fd0fd7ee052edc001ac8fe3c928d1de7367e8 (diff) | |
Warn on importing complete certificate chains (part of #1488).
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/config.h | 1 | ||||
| -rw-r--r-- | src/wx/config_dialog.cc | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 3518dc63f..7f8dd0cd4 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -370,6 +370,7 @@ public: NAG_BAD_SIGNER_CHAIN, /* Not really a nag but it's the same idea */ NAG_INITIAL_SETUP, + NAG_IMPORT_DECRYPTION_CHAIN, NAG_COUNT }; 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") ); |
