From 45a4174d5269661cfbd46e56acbbdc6551c6fbe2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 9 Jan 2016 23:36:58 +0200 Subject: Support https protocol for repository_location --- bpkg/manifest | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bpkg/manifest') 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& -- cgit v1.1