aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/nar-info.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-03-21 18:05:47 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-03-21 18:05:47 +0100
commit712b616a8443b940e94ac443499246f4de6ee5cd (patch)
treecd4ab98dc9cd586c68da8a9096021c5e998fe513 /src/libstore/nar-info.hh
parentcebc150b7ccf534612d7d8c75200c1717e986566 (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.hh7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libstore/nar-info.hh b/src/libstore/nar-info.hh
index 22e27cb42..2d04e4526 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: