summaryrefslogtreecommitdiff
path: root/src/lib/internet.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-21 23:39:03 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-09 17:04:02 +0100
commit2fd641547b5fb795fc17e98e47f489fa82e8ff42 (patch)
treeebfd84898df8e1eabaaa2888c89e0c71137cb301 /src/lib/internet.h
parentcf65c2709664936940935996499ac87dc47515f0 (diff)
Display the filename / URL that a screen certificate was obtained from (#1894).
Diffstat (limited to 'src/lib/internet.h')
-rw-r--r--src/lib/internet.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/lib/internet.h b/src/lib/internet.h
index f3cd2c6b4..041bb1bb1 100644
--- a/src/lib/internet.h
+++ b/src/lib/internet.h
@@ -27,6 +27,20 @@ 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, std::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, std::function<boost::optional<std::string> (boost::filesystem::path)> load);
+
+boost::optional<std::string> get_from_url (
+ std::string url,
+ bool pasv,
+ bool skip_pasv_ip,
+ std::function<boost::optional<std::string> (boost::filesystem::path, std::string)> load
+ );
+
+boost::optional<std::string> get_from_zip_url (
+ std::string url,
+ std::string file,
+ bool pasv,
+ bool skip_pasv_ip,
+ std::function<boost::optional<std::string> (boost::filesystem::path, std::string)> load
+ );
+
std::list<std::string> ls_url (std::string url);