diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-14 20:14:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-14 20:14:52 +0200 |
| commit | 8c7ad603cf0a534abe1a920b70b0daa095257d3a (patch) | |
| tree | 28ecc906611cd60b6d2df3d33446e32eb654d907 /src/lib/internet.h | |
| parent | 4edc14c8b1410e24f68b510cc14409b96c0338a3 (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.h | 6 |
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); |
