mirror of
https://0xacab.org/liberate/trees.git
synced 2024-11-25 03:30:34 +01:00
libsodium <= 1.0.14 patch
This commit is contained in:
parent
e136c32a04
commit
ed0bbfb274
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user