Closed jvarho closed 6 years ago
damn. sorry. fixing it right now.
hmmmm. looks like there are some constants that have been only added in 1.0.12 but the crypto_pwhash_scryptsalsa208sha256 interface existed previously already since at least 1.0.8. dunno what the best course is, remove the sanity checks entirely for that interface, or enable them only if libsodium is >=1.0.12, and let the previous versions fly blindly?
please confirm the fix of this bug by b38db7d8583793a41569a5cd0f8dc761e3e56dba by closing this issue.
I found one more instance, see #84 .
looks like there are some constants that have been only added in 1.0.12 but the crypto_pwhash_scryptsalsa208sha256 interface existed previously already since at least 1.0.8. dunno what the best course is, remove the sanity checks entirely for that interface, or enable them only if libsodium is >=1.0.12, and let the previous versions fly blindly?
Another option would be to hardcode the values of those constants in 1.0.8...<1.0.12.
ah, the hardcoding thing seems like the right solution to this problem, i'll do that! thanks for the insight! keep this ticket open until i commit that fix.
i hardcoded the missing values in case they do not exist, also i removed the sodium_version_checks which are made obsolete by this (and i reordered some of the constants to make them more human friendly) in 1d00f0c95b045211fefd9f05a643ac1feb5bb225.
Some of the constants/functions added in bca3999 do not exist in earlier versions of libsodium, like the one I have from Ubuntu 16.04, which is version 1.0.8. I get an error like:
I don't have time to figure out each of them at the moment or I would have tried to make a PR.