daemon: Isolate signing and signature verification functions.
authorLudovic Courtès <ludo@gnu.org>
Thu, 10 Sep 2020 14:46:52 +0000 (16:46 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 14 Sep 2020 13:42:55 +0000 (15:42 +0200)
commit27cc51c269fbe9d2ca65711d281c63ae441a9b4a
tree16b97c8c44636aa9518ad238dbed9aef828e8e64
parent7809071c822589dfc3c65c539760e92936c41073
daemon: Isolate signing and signature verification functions.

* nix/libstore/local-store.cc (signHash, verifySignature): New
functions.
(LocalStore::exportPath): Use 'signHash' instead of inline code.
(LocalStore::importPath): Use 'verifySignature' instead of inline code.
nix/libstore/local-store.cc