aboutsummaryrefslogtreecommitdiff
path: root/src/nix-store
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-09-08 16:55:27 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-09-08 16:55:27 +0200
commit3ed8290e5331011609de462bda67857837998583 (patch)
treea8504108fec7478241232edef0a0bd71b1a91175 /src/nix-store
parente02edb14836fda29019adf95073092d874ebd925 (diff)
LegacySSHStore: Include signatures etc.
Diffstat (limited to 'src/nix-store')
-rw-r--r--src/nix-store/nix-store.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index 1668fdb2d..85bcbc22e 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -858,6 +858,8 @@ static void opServe(Strings opFlags, Strings opArgs)
// !!! Maybe we want compression?
out << info->narSize // downloadSize
<< info->narSize;
+ if (GET_PROTOCOL_MINOR(clientVersion) >= 4)
+ out << (info->narHash ? info->narHash.to_string() : "") << info->ca << info->sigs;
} catch (InvalidPath &) {
}
}