diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-01-04 21:02:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-01-04 21:02:23 +0100 |
| commit | 20bf5c5ce90123c76105e4f62039a5c9899287c0 (patch) | |
| tree | 80601c954f919bb11b1cb83b30af00447e08e4af /src/wx/download_certificate_panel.cc | |
| parent | 0242ba75b62ba245bb1b61086d118520f7477934 (diff) | |
Hacks: qube is awkward as it needs this _type2706-redownload-certificates
The whole thing is a bit of a nightmare and there's no tests.
Diffstat (limited to 'src/wx/download_certificate_panel.cc')
| -rw-r--r-- | src/wx/download_certificate_panel.cc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/wx/download_certificate_panel.cc b/src/wx/download_certificate_panel.cc index 656e998a2..0f3378559 100644 --- a/src/wx/download_certificate_panel.cc +++ b/src/wx/download_certificate_panel.cc @@ -56,35 +56,10 @@ DownloadCertificatePanel::DownloadCertificatePanel (DownloadCertificateDialog* d } -void -DownloadCertificatePanel::load_certificate(dcp::Data const& data, string url) -{ - try { - _certificate = dcp::Certificate(data.as_string()); - _url = url; - } catch (dcp::MiscError& e) { - throw CertificateDownloadError(fmt::format(wx_to_std(_("Could not read certificate file ({})")), e.what())); - } -} - - -void -DownloadCertificatePanel::load_certificate_from_chain(dcp::Data const& data, string url) -{ - try { - _certificate = dcp::CertificateChain(data.as_string()).leaf(); - _url = url; - } catch (dcp::MiscError& e) { - throw CertificateDownloadError(fmt::format(wx_to_std(_("Could not read certificate file ({})")), e.what())); - } -} - - optional<dcp::Certificate> DownloadCertificatePanel::certificate () const { return _certificate; - } |
