diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-21 23:39:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-03-09 17:04:02 +0100 |
| commit | 2fd641547b5fb795fc17e98e47f489fa82e8ff42 (patch) | |
| tree | ebfd84898df8e1eabaaa2888c89e0c71137cb301 /src/lib/internet.h | |
| parent | cf65c2709664936940935996499ac87dc47515f0 (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.h | 18 |
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); |
