summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-05-26 11:49:50 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-05-26 11:49:50 +0200
commit755cb5c76a53a8fd04408bcc080b1796e77162f5 (patch)
treedade5b7c84f74c76d85e226f7fbd0982494a0046 /configure.ac
parent870c6d65864ff8265c5e4863529df4a44f99e1b1 (diff)
remove argon2 dependency. Use limited libsodium argon2id function for GNS and NSE
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 1 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index 1c732a152..6dc914c12 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1033,20 +1033,10 @@ AS_IF([test x$nss = xfalse],
AC_CHECK_LIB([kvm],[kvm_open])
AC_CHECK_LIB([kstat],[kstat_open])
-argon=0
-# test for argon2 (for POW)
-AC_CHECK_LIB([argon2],[argon2d_hash_raw], argon=1, argon=0)
-AS_IF([test x$argon = x1],
-[
- AC_MSG_RESULT([argon2 found])
-],[
- AC_MSG_ERROR([GNUnet requires argon2.])
-])
-
libsodium=0
# test for libsodium
AC_CHECK_HEADER([sodium.h],
- [AC_CHECK_LIB([sodium], [sodium_init],
+ [AC_CHECK_LIB([sodium], [crypto_pwhash_argon2id],
[libsodium=1])])
AS_IF([test x$libsodium = x0],