Skip to content
Snippets Groups Projects
Commit ed0bbfb2 authored by matthias's avatar matthias
Browse files

libsodium <= 1.0.14 patch

parent e136c32a
Branches
Tags v2.0.0
1 merge request!4Fix for #17 build issue with libsodium <= 1.0.14 and password change option for trees-create
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment