aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-09-02 17:50:44 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-09-02 17:50:44 +0200
commitaeb695c0074b52772057b36f442a054f8d1a856d (patch)
tree7576c5adb8a00b61791fb435fe55aa28974a3be5 /src/libutil
parentc693f80b814c244dcdae7a2e87fb9e444d9d1ca5 (diff)
Remove obsolete OpenSSL locking code
OpenSSL 1.1.1 no longer needs this (https://github.com/openssl/openssl/commit/2e52e7df518d80188c865ea3f7bb3526d14b0c08). This shuts up a clang warning about opensslLockCallback being unused.
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/hash.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc
index 1c14ebb18..362c537fe 100644
--- a/src/libutil/hash.cc
+++ b/src/libutil/hash.cc
@@ -13,6 +13,10 @@
#include <sys/stat.h>
#include <fcntl.h>
+#if OPENSSL_VERSION_NUMBER < 0x10101000L
+#error "Unsupported version of OpenSSL, you need at least 1.1.1"
+#endif
+
namespace nix {