summaryrefslogtreecommitdiff
path: root/zen/http.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-07-28 22:11:18 +0000
committerB Stack <bgstack15@gmail.com>2019-07-28 22:11:18 +0000
commitd55d83514b81127e53ebcaaaf261c40c6bd265b1 (patch)
tree3e1ab2d39bea9777796470da1ee22d8a8591feef /zen/http.h
parentMerge branch '10.13' into 'master' (diff)
parentAdd open_ssl.cpp to CPP_FILES in Makefile (diff)
downloadFreeFileSync-d55d83514b81127e53ebcaaaf261c40c6bd265b1.tar.gz
FreeFileSync-d55d83514b81127e53ebcaaaf261c40c6bd265b1.tar.bz2
FreeFileSync-d55d83514b81127e53ebcaaaf261c40c6bd265b1.zip
Merge branch '10.14' into 'master'10.14
10.14 See merge request opensource-tracking/FreeFileSync!11
Diffstat (limited to 'zen/http.h')
-rw-r--r--zen/http.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/zen/http.h b/zen/http.h
index 5d84be2c..2fafa574 100644
--- a/zen/http.h
+++ b/zen/http.h
@@ -15,7 +15,7 @@ namespace zen
{
/*
- thread-safe! (Window/Linux/macOS)
- - HTTPS supported only for Windows
+ - Linux/macOS: init OpenSSL before use!
*/
class HttpInputStream
{
@@ -36,9 +36,16 @@ private:
};
-HttpInputStream sendHttpGet (const Zstring& url, const Zstring& userAgent, const IOCallback& notifyUnbufferedIO /*throw X*/); //throw SysError
-HttpInputStream sendHttpPost(const Zstring& url, const Zstring& userAgent, const IOCallback& notifyUnbufferedIO /*throw X*/, //
- const std::vector<std::pair<std::string, std::string>>& postParams);
+HttpInputStream sendHttpGet(const Zstring& url,
+ const Zstring& userAgent,
+ const Zstring* caCertFilePath /*optional: enable certificate validation*/,
+ const IOCallback& notifyUnbufferedIO /*throw X*/); //throw SysError
+
+HttpInputStream sendHttpPost(const Zstring& url,
+ const std::vector<std::pair<std::string, std::string>>& postParams,
+ const Zstring& userAgent,
+ const Zstring* caCertFilePath /*optional: enable certificate validation*/,
+ const IOCallback& notifyUnbufferedIO /*throw X*/);
bool internetIsAlive(); //noexcept
std::string xWwwFormUrlEncode(const std::vector<std::pair<std::string, std::string>>& paramPairs);
bgstack15