aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-09 23:36:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-09 23:36:58 +0200
commit45a4174d5269661cfbd46e56acbbdc6551c6fbe2 (patch)
tree9146ca1bcb20797c80cb291722ba819fff4ce632 /bpkg/manifest
parent9239c606dfadf96a5a69e2581ddb54064afcdfa7 (diff)
Support https protocol for repository_location
Diffstat (limited to 'bpkg/manifest')
-rw-r--r--bpkg/manifest10
1 files changed, 10 insertions, 0 deletions
diff --git a/bpkg/manifest b/bpkg/manifest
index d4c34d6..d443c49 100644
--- a/bpkg/manifest
+++ b/bpkg/manifest
@@ -458,6 +458,15 @@ namespace bpkg
return port_;
}
+ bool
+ secure () const
+ {
+ if (local ())
+ throw std::logic_error ("local location");
+
+ return secure_;
+ }
+
// Note that this is not necessarily syntactically the same string
// as what was used to initialize this location. But it should be
// semantically equivalent. String representation of an empty
@@ -471,6 +480,7 @@ namespace bpkg
std::string host_;
std::uint16_t port_;
butl::dir_path path_;
+ bool secure_;
};
inline std::ostream&