From ed0bbfb2746e620593b17668b4cd660b5aaf6e18 Mon Sep 17 00:00:00 2001 From: matthias Date: Sat, 19 May 2018 12:09:30 +0200 Subject: [PATCH] libsodium <= 1.0.14 patch --- src/trees-plugin.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/trees-plugin.h b/src/trees-plugin.h index c6fd36e..d3da04f 100644 --- a/src/trees-plugin.h +++ b/src/trees-plugin.h @@ -33,9 +33,11 @@ trees_pluging_pwhash_map(int value) case 0: /* argon2i, libsodium <= 1.0.14. */ return crypto_pwhash_ALG_ARGON2I13; +#ifdef crypto_pwhash_ALG_ARGON2IDI3 case 1: /* argon2id, libsodium >= 1.0.15 */ return crypto_pwhash_ALG_ARGON2ID13; +#endif default: return -1; }