summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-08-15 10:10:19 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-15 10:57:07 +0100
commitc3fc23c2670ae6377ef42a4e4af051d47b88e75d (patch)
tree60581daa31e9343ee6e427050b9b3b842674464f /src
parent89abe02431bd8d885197883a3ffafdc8d836dce4 (diff)
Christie fixes.
Diffstat (limited to 'src')
-rw-r--r--src/wx/christie_certificate_panel.cc20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/wx/christie_certificate_panel.cc b/src/wx/christie_certificate_panel.cc
index 53d815bf7..fa91cc2b5 100644
--- a/src/wx/christie_certificate_panel.cc
+++ b/src/wx/christie_certificate_panel.cc
@@ -44,26 +44,24 @@ ChristieCertificatePanel::do_download ()
return;
}
- string const serial = wx_to_std (_serial->GetValue());
- string const url = String::compose (
- "ftp://%1:%2@certificates.christiedigital.com/Certificates/F-IMB/F-IMB_000000%3_sha256.pem",
+ string const prefix = String::compose(
+ "ftp://%1:%2@certificates.christiedigital.com/Certificates/",
Config::instance()->christie_username().get(),
- Config::instance()->christie_password().get(),
- serial
+ Config::instance()->christie_password().get()
);
+ string serial = wx_to_std (_serial->GetValue());
+ serial.insert (0, 12 - serial.length(), '0');
+
+ string const url = String::compose ("%1F-IMB/F-IMB_%2_sha256.pem", prefix, serial);
+
optional<string> all_errors;
optional<string> error = get_from_url (url, true, boost::bind (&DownloadCertificatePanel::load, this, _1));
if (error) {
all_errors = *error;
- string const url = String::compose (
- "ftp://%1:%2@certificates.christiedigital.com/Certificates/F-IMB/F-IMB_000000%3_sha256.pem",
- Config::instance()->christie_username().get(),
- Config::instance()->christie_password().get(),
- serial
- );
+ string const url = String::compose ("%1IMB-S2/IMB-S2_%2_sha256.pem", prefix, serial);
error = get_from_url (url, true, boost::bind (&DownloadCertificatePanel::load, this, _1));
if (error) {