diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-02-12 20:15:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-02-12 20:15:05 +0100 |
| commit | 9060f465fc05f44882e96a8b73551767e5a9d876 (patch) | |
| tree | ae81264e85e6c53f1868183e809838189322b8e7 /src/wx/recreate_chain_dialog.cc | |
| parent | d6bf14897e544761e1a58b6d41f261d446afa5c9 (diff) | |
Prompt to recreate > ~10 year old certificates on startup.v2.14.58v2.14.x-10-year-validity
Diffstat (limited to 'src/wx/recreate_chain_dialog.cc')
| -rw-r--r-- | src/wx/recreate_chain_dialog.cc | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/wx/recreate_chain_dialog.cc b/src/wx/recreate_chain_dialog.cc index 935016939..d4dc74315 100644 --- a/src/wx/recreate_chain_dialog.cc +++ b/src/wx/recreate_chain_dialog.cc @@ -32,12 +32,20 @@ using std::string; using namespace boost::placeholders; #endif -RecreateChainDialog::RecreateChainDialog (wxWindow* parent) +RecreateChainDialog::RecreateChainDialog (wxWindow* parent, Config::BadSignerChainReason reason) : QuestionDialog (parent, _("Certificate chain"), _("Recreate signing certificates"), _("Do nothing")) + , _reason (reason) { - wxString const message = _("The certificate chain that DCP-o-matic uses for signing DCPs and KDMs contains a small error\n" - "which will prevent DCPs from being validated correctly on some systems. Do you want to re-create\n" - "the certificate chain for signing DCPs and KDMs?"); + wxString message; + if (_reason & Config::BadSignerChainReason::BAD_SIGNER_CHAIN_VALIDITY_TOO_LONG) { + message = _("The certificate chain that DCP-o-matic uses for signing DCPs and KDMs has a validity period\n" + "that is too long. This will cause problems playing back DCPs on some systems.\n" + "Do you want to re-create the certificate chain for signing DCPs and KDMs?"); + } else { + message = _("The certificate chain that DCP-o-matic uses for signing DCPs and KDMs contains a small error\n" + "which will prevent DCPs from being validated correctly on some systems. Do you want to re-create\n" + "the certificate chain for signing DCPs and KDMs?"); + } _sizer->Add (new StaticText (this, message), 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); @@ -52,5 +60,10 @@ RecreateChainDialog::RecreateChainDialog (wxWindow* parent) void RecreateChainDialog::shut_up (wxCommandEvent& ev) { - Config::instance()->set_nagged (Config::NAG_BAD_SIGNER_CHAIN, ev.IsChecked()); + if (_reason & Config::BadSignerChainReason::BAD_SIGNER_CHAIN_VALIDITY_TOO_LONG) { + Config::instance()->set_nagged (Config::NAG_BAD_SIGNER_CHAIN_VALIDITY_TOO_LONG, ev.IsChecked()); + } else { + Config::instance()->set_nagged (Config::NAG_BAD_SIGNER_CHAIN_UTF8_STRINGS, ev.IsChecked()); + } } + |
