about summary refs log tree commit diff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-03-21T17·05+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-03-21T17·05+0100
commit712b616a8443b940e94ac443499246f4de6ee5cd (patch)
treecd4ab98dc9cd586c68da8a9096021c5e998fe513 /src/libstore/store-api.hh
parentcebc150b7ccf534612d7d8c75200c1717e986566 (diff)
Move signatures from NarInfo to ValidPathInfo
This allows queryPathInfo() to return signatures.
Diffstat (limited to '')
-rw-r--r--src/libstore/store-api.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 9a2c9daca0..1a74401483 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -98,6 +98,13 @@ struct ValidPathInfo
     unsigned long long narSize = 0; // 0 = unknown
     unsigned long long id; // internal use only
 
+    /* Whether the path is ultimately trusted, that is, it was built
+       locally or is content-addressable (e.g. added via addToStore()
+       or the result of a fixed-output derivation). */
+    bool ultimate = false;
+
+    StringSet sigs; // note: not necessarily verified
+
     bool operator == (const ValidPathInfo & i) const
     {
         return