Sign locally-built paths

Locally-built paths are now signed automatically using the secret keys
specified by the ‘secret-key-files’ option.
This commit is contained in:
Eelco Dolstra 2016-04-07 14:14:06 +02:00
parent dc82160164
commit e39999ed48
3 changed files with 24 additions and 1 deletions

View file

@ -301,6 +301,12 @@ private:
// Internal versions that are not wrapped in retry_sqlite.
bool isValidPath_(const Path & path);
void queryReferrers_(const Path & path, PathSet & referrers);
/* Add signatures to a ValidPathInfo using the secret keys
specified by the secret-key-files option. */
void signPathInfo(ValidPathInfo & info);
friend class DerivationGoal;
};