libsodium <= 1.0.14 patch

This commit is contained in:
matthias 2018-05-19 12:09:30 +02:00
parent e136c32a04
commit ed0bbfb274

View File

@ -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;
}