Build fixes for Boost >= 1.73
[dcpomatic.git] / src / wx / gdc_certificate_panel.cc
index b4352dff4ef70c1c6d559b32017a435967aeac48..8897ec84c37a1dc54d1ef370460f6d3417067592 100644 (file)
@@ -27,6 +27,9 @@
 
 using std::string;
 using boost::optional;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
 
 GDCCertificatePanel::GDCCertificatePanel (DownloadCertificateDialog* dialog)
        : DownloadCertificatePanel (dialog)
@@ -45,13 +48,13 @@ GDCCertificatePanel::do_download ()
        }
 
        string const url = String::compose(
-               "ftp://%1:%2@ftp.gdc-tech.com/SHA256/A%3",
+               "ftp://%1:%2@ftp.gdc-tech.com/SHA256/A%3.crt.pem",
                Config::instance()->gdc_username().get(),
                Config::instance()->gdc_password().get(),
-               serial
+               wx_to_std(_serial->GetValue())
                );
 
-       optional<string> error = get_from_url (url, true, boost::bind (&DownloadCertificatePanel::load, this, _1));
+       optional<string> error = get_from_url (url, true, false, boost::bind(&DownloadCertificatePanel::load_certificate, this, _1));
 
        if (error) {
                _dialog->message()->SetLabel(wxT(""));