summaryrefslogtreecommitdiff
path: root/src/lib/internet.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-05-14 20:14:52 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-14 20:14:52 +0200
commit8c7ad603cf0a534abe1a920b70b0daa095257d3a (patch)
tree28ecc906611cd60b6d2df3d33446e32eb654d907 /src/lib/internet.h
parent4edc14c8b1410e24f68b510cc14409b96c0338a3 (diff)
Don't say 'certificate downloaded' if it failed during the read part.
Diffstat (limited to 'src/lib/internet.h')
-rw-r--r--src/lib/internet.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/internet.h b/src/lib/internet.h
index 5f9a25e3b..8aa7264c6 100644
--- a/src/lib/internet.h
+++ b/src/lib/internet.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2014-2019 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2020 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -25,6 +25,6 @@
class ScopedTemporary;
boost::optional<std::string> get_from_url (std::string url, bool pasv, bool skip_pasv_ip, ScopedTemporary& temp);
-boost::optional<std::string> get_from_url (std::string url, bool pasv, bool skip_pasv_ip, boost::function<void (boost::filesystem::path)> load);
-boost::optional<std::string> get_from_zip_url (std::string url, std::string file, bool pasv, bool skip_pasv_ip, boost::function<void (boost::filesystem::path)> load);
+boost::optional<std::string> get_from_url (std::string url, bool pasv, bool skip_pasv_ip, boost::function<boost::optional<std::string> (boost::filesystem::path)> load);
+boost::optional<std::string> get_from_zip_url (std::string url, std::string file, bool pasv, bool skip_pasv_ip, boost::function<boost::optional<std::string> (boost::filesystem::path)> load);
std::list<std::string> ls_url (std::string url);