diff options
Diffstat (limited to 'src/libstore/crypto.cc')
-rw-r--r-- | src/libstore/crypto.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/crypto.cc b/src/libstore/crypto.cc index 53e94e1f5..caba22c1e 100644 --- a/src/libstore/crypto.cc +++ b/src/libstore/crypto.cc @@ -37,10 +37,12 @@ SecretKey::SecretKey(const string & s) #endif } +#if !HAVE_SODIUM [[noreturn]] static void noSodium() { throw Error("Nix was not compiled with libsodium, required for signed binary cache support"); } +#endif std::string SecretKey::signDetached(const std::string & data) const { |