Display thumbprint rather than whole certificate in screen dialogue.
[dcpomatic.git] / src / wx / download_certificate_panel.cc
index 7b670261b89d53219c9744d72d46a669d4e7be04..1379025c66ae1268ae20a086f90d29f9f094dcc3 100644 (file)
@@ -24,6 +24,7 @@
 #include <boost/bind.hpp>
 
 using boost::function;
+using boost::optional;
 
 DownloadCertificatePanel::DownloadCertificatePanel (wxWindow* parent, DownloadCertificateDialog* dialog)
        : wxPanel (parent, wxID_ANY)
@@ -55,9 +56,8 @@ DownloadCertificatePanel::load (boost::filesystem::path file)
        }
 }
 
-dcp::Certificate
+optional<dcp::Certificate>
 DownloadCertificatePanel::certificate () const
 {
-       DCPOMATIC_ASSERT (_certificate);
-       return _certificate.get ();
+       return _certificate;
 }