Skip to content

Conversation

@haszi
Copy link
Contributor

@haszi haszi commented Feb 7, 2024

This PR moves a few constants from password.c and sodium_pwshash.c to stub files. This is done by first aligning some of the underlying values in the header files, moving argon2 constant registrations right after the first successful algorithm registration and moving the first set of constants from both files to a stub file.

@kocsismate This is the last set of constants that I could move into stub files that I mentioned in my other PR (#13312).

haszi added 2 commits February 9, 2024 19:42
Move all remaining PASSWORD constants to stub files
Assign string values directly to PHP variables in stubs
Wrap all sodium_pwhash function calls and C constants in argon2lib and libsodium version checks
@haszi haszi requested a review from kocsismate February 11, 2024 17:51
@haszi haszi requested a review from kocsismate February 12, 2024 08:56
@kocsismate kocsismate merged commit 20c49f8 into php:master Feb 12, 2024
@haszi haszi deleted the Password-constants-to-stubs branch February 13, 2024 07:18
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