From b4e0335d4d74e2ba0bc4eadcd7ff20d70a7bf7c0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 4 Mar 2016 17:23:42 +0100 Subject: Add option binary-cache-secret-key-file for signing binary caches --- src/libstore/http-binary-cache-store.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libstore/http-binary-cache-store.cc') diff --git a/src/libstore/http-binary-cache-store.cc b/src/libstore/http-binary-cache-store.cc index 861e13c7fe39..9614d0b4cf35 100644 --- a/src/libstore/http-binary-cache-store.cc +++ b/src/libstore/http-binary-cache-store.cc @@ -1,5 +1,6 @@ #include "binary-cache-store.hh" #include "download.hh" +#include "globals.hh" namespace nix { @@ -65,7 +66,7 @@ static RegisterStoreImplementation regStore([](const std::string & uri) -> std:: if (std::string(uri, 0, 7) != "http://" && std::string(uri, 0, 8) != "https://") return 0; auto store = std::make_shared(std::shared_ptr(0), - "", // FIXME: allow the signing key to be set + settings.get("binary-cache-secret-key-file", string("")), uri); store->init(); return store; -- cgit 1.4.1