about summary refs log tree commit diff
path: root/src/libstore/s3.hh
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-12-07T22·38+0100
committerDaiderd Jordan <daiderd@gmail.com>2018-12-07T22·55+0100
commit898823b67d4d9ceeaebf166957141706eb03ad72 (patch)
tree6631268c1cd4e5717fa82240e664bc1c0dd6d833 /src/libstore/s3.hh
parent05f0543a1761357f4790e388ac74c8e284b9bb3e (diff)
s3: make scheme configurable
This enables using for http for S3 request for debugging or
implementations that don't have https configured.  This is not a problem
for binary caches since they should not contain sensitive information.
Both package signatures and AWS auth already protect against tampering.
Diffstat (limited to 'src/libstore/s3.hh')
-rw-r--r--src/libstore/s3.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/s3.hh b/src/libstore/s3.hh
index 95d612b66335..ef5f23d0f253 100644
--- a/src/libstore/s3.hh
+++ b/src/libstore/s3.hh
@@ -14,9 +14,9 @@ struct S3Helper
     ref<Aws::Client::ClientConfiguration> config;
     ref<Aws::S3::S3Client> client;
 
-    S3Helper(const std::string & profile, const std::string & region, const std::string & endpoint);
+    S3Helper(const std::string & profile, const std::string & region, const std::string & scheme, const std::string & endpoint);
 
-    ref<Aws::Client::ClientConfiguration> makeConfig(const std::string & region, const std::string & endpoint);
+    ref<Aws::Client::ClientConfiguration> makeConfig(const std::string & region, const std::string & scheme, const std::string & endpoint);
 
     struct DownloadResult
     {