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:
parent
e02edb1483
commit
3ed8290e53
3 changed files with 10 additions and 1 deletions
|
@ -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 == "");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue