diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-09-08T14·55+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-09-08T14·55+0200 |
commit | 3ed8290e5331011609de462bda67857837998583 (patch) | |
tree | a8504108fec7478241232edef0a0bd71b1a91175 /src/libstore/legacy-ssh-store.cc | |
parent | e02edb14836fda29019adf95073092d874ebd925 (diff) |
LegacySSHStore: Include signatures etc.
Diffstat (limited to 'src/libstore/legacy-ssh-store.cc')
-rw-r--r-- | src/libstore/legacy-ssh-store.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/legacy-ssh-store.cc b/src/libstore/legacy-ssh-store.cc index 855a7c99aed6..dfefdb9bc874 100644 --- a/src/libstore/legacy-ssh-store.cc +++ b/src/libstore/legacy-ssh-store.cc @@ -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 == ""); |