10000 [SecurityBundle] fix tests when libsodium is not installed by fmata · Pull Request #26577 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[SecurityBundle] fix tests when libsodium is not installed #26577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

[SecurityBundle] fix tests when libsodium is not installed #26577

wants to merge 1 commit into from

Conversation

fmata
Copy link
Contributor
@fmata fmata commented Mar 17, 2018
Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

#26057 updated a test to handle libsodium when the lib is installed.
When it's not installed, the checks of Argon2iPasswordEncoder::isSupported() still returns true if sodium_crypto_pwhash_str() exists and in this case the password value displayed by the command security:encode-password contains $argon2i instead of $argon2id so preg_match() returns false, a notice is emit (Undefined offset: 1) and the test fails.

@fmata
Copy link
Contributor Author
fmata commented Mar 17, 2018

Ooop's, #26424 already fix it but it's not merged yet in master. Sorry for the noise.

@fmata fmata closed this Mar 17, 2018
@fmata fmata deleted the argon2i-tests branch March 17, 2018 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0