diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-21T17·05+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-21T17·05+0100 |
commit | 712b616a8443b940e94ac443499246f4de6ee5cd (patch) | |
tree | cd4ab98dc9cd586c68da8a9096021c5e998fe513 /src/libstore/nar-info.hh | |
parent | cebc150b7ccf534612d7d8c75200c1717e986566 (diff) |
Move signatures from NarInfo to ValidPathInfo
This allows queryPathInfo() to return signatures.
Diffstat (limited to 'src/libstore/nar-info.hh')
-rw-r--r-- | src/libstore/nar-info.hh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libstore/nar-info.hh b/src/libstore/nar-info.hh index 22e27cb42ebf..2d04e452611e 100644 --- a/src/libstore/nar-info.hh +++ b/src/libstore/nar-info.hh @@ -13,7 +13,6 @@ struct NarInfo : ValidPathInfo Hash fileHash; uint64_t fileSize = 0; std::string system; - std::string sig; // FIXME: support multiple signatures NarInfo() { } NarInfo(const ValidPathInfo & info) : ValidPathInfo(info) { } @@ -31,9 +30,9 @@ struct NarInfo : ValidPathInfo void sign(const SecretKey & secretKey); - /* Return true iff this .narinfo is signed by one of the specified - keys. */ - bool checkSignature(const PublicKeys & publicKeys) const; + /* Return the number of signatures on this .narinfo that were + produced by one of the specified keys. */ + unsigned int checkSignatures(const PublicKeys & publicKeys) const; private: |