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
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) ...@@ -33,9 +33,11 @@ trees_pluging_pwhash_map(int value)
case 0: case 0:
/* argon2i, libsodium <= 1.0.14. */ /* argon2i, libsodium <= 1.0.14. */
return crypto_pwhash_ALG_ARGON2I13; return crypto_pwhash_ALG_ARGON2I13;
#ifdef crypto_pwhash_ALG_ARGON2IDI3
case 1: case 1:
/* argon2id, libsodium >= 1.0.15 */ /* argon2id, libsodium >= 1.0.15 */
return crypto_pwhash_ALG_ARGON2ID13; return crypto_pwhash_ALG_ARGON2ID13;
#endif
default: default:
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment