Skip to content
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

crypt.c: Don't attempt to seed crypt_data.current_salt. #43

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

InterLinked1
Copy link
Owner

Red Hat / Rocky Linux 8 don't seem to need NEED_CRYPT_IMPL, and will fail if it's defined, so don't define it on those platforms.

current_salt is a deprecated field that is only set when
NEED_CRYPTO_IMPL is defined, such as on Debian 10 and
other older distros that don't provide a sufficiently
capable crypt_r. However, some distros, such as Rocky Linux 8,
don't even have these fields in their struct crypt_data.
Since it's not clear what this accomplished and appears to
be unnecessary, just disable this for now.

To ensure this doesn't cause a regression, all the Linux
CI's also run the menu tests, to ensure that authentication
succeeds (since that can rely on the affected code).
@InterLinked1 InterLinked1 changed the title crypt.c: Don't define NEED_CRYPT_IMPL for RHEL 8. crypt.c: Don't attempt to seed crypt_data.current_salt. Sep 23, 2024
@InterLinked1 InterLinked1 merged commit 2ab56c8 into master Sep 23, 2024
14 checks passed
@InterLinked1 InterLinked1 deleted the crypt branch September 23, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant