8000 bug #32200 [Security/Core] work around sodium_compat issue (nicolas-g… · symfony/symfony@eb438a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit eb438a4

Browse files
bug #32200 [Security/Core] work around sodium_compat issue (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [Security/Core] work around sodium_compat issue | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - As reported by @mbabker in #32169 1.0.9 per https://github.com/jedisct1/libsodium/releases/tag/1.0.9 Commits ------- df50685 [Security/Core] work around sodium_compat issue
2 parents fe5a4ee + df50685 commit eb438a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Core/Encoder/Argon2iPasswordEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function isSupported()
2626
return true;
2727
}
2828

29-
return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium');
29+
return version_compare(\extension_loaded('sodium') ? \SODIUM_LIBRARY_VERSION : phpversion('libsodium'), '1.0.9', '>=');
3030
}
3131

3232
/**

0 commit comments

Comments
 (0)
0