1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

LegacySSHStore: Include signatures etc.

This commit is contained in:
Eelco Dolstra 2017-09-08 16:55:27 +02:00
parent e02edb1483
commit 3ed8290e53
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 10 additions and 1 deletions

View file

@ -105,6 +105,13 @@ struct LegacySSHStore : public Store
readLongLong(conn->from); // download size
info->narSize = readLongLong(conn->from);
if (GET_PROTOCOL_MINOR(conn->remoteVersion) >= 4) {
auto s = readString(conn->from);
info->narHash = s.empty() ? Hash() : Hash(s);
conn->from >> info->ca;
info->sigs = readStrings<StringSet>(conn->from);
}
auto s = readString(conn->from);
assert(s == "");