From 2fd641547b5fb795fc17e98e47f489fa82e8ff42 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 21 Jan 2022 23:39:03 +0100 Subject: Display the filename / URL that a screen certificate was obtained from (#1894). --- src/lib/internet.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/lib/internet.h') 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 get_from_url (std::string url, bool pasv, bool skip_pasv_ip, ScopedTemporary& temp); -boost::optional get_from_url (std::string url, bool pasv, bool skip_pasv_ip, std::function (boost::filesystem::path)> load); -boost::optional get_from_zip_url (std::string url, std::string file, bool pasv, bool skip_pasv_ip, std::function (boost::filesystem::path)> load); + +boost::optional get_from_url ( + std::string url, + bool pasv, + bool skip_pasv_ip, + std::function (boost::filesystem::path, std::string)> load + ); + +boost::optional get_from_zip_url ( + std::string url, + std::string file, + bool pasv, + bool skip_pasv_ip, + std::function (boost::filesystem::path, std::string)> load + ); + std::list ls_url (std::string url); -- cgit v1.2.3