diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-22 11:47:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-04-22 11:47:52 +0100 |
| commit | 2dfe23c8af897ebfc1cca8b3b9d9fc7a802e736e (patch) | |
| tree | 2a63c69785eb9830bdfdbd529f3ba53ca074bd07 /src | |
| parent | 5317f5a6f3415aec5d6e99ca7e6fc89d735bc700 (diff) | |
Warn when loading certificates from files that have other stuff after the certificate (#805).
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/config_dialog.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc index af4a04e2e..d0c7ffb72 100644 --- a/src/wx/config_dialog.cc +++ b/src/wx/config_dialog.cc @@ -752,6 +752,13 @@ private: if (d->ShowModal() == wxID_OK) { try { dcp::Certificate c (dcp::file_to_string (wx_to_std (d->GetPath ()))); + if (c.extra_data ()) { + message_dialog ( + this, + _("This file contains other certificates (or other data) after its first certificate. " + "Only the first certificate will be used.") + ); + } _chain->add (c); _set (_chain); update_certificate_list (); |
