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

allow choosing between libgcrypt, gnutls or embedded MD5 #418

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

bonzini
Copy link
Contributor

@bonzini bonzini commented Apr 9, 2024

libgcrypt is a relatively large dependency that is used only for the sake of computing MD5 in the CHAP authentication protocol. Some distributions may want to disable it forcibly and rely on the embedded MD5 implementation.

On the other hand, other distributions may want to standardize on as few crypto libraries as possible, and to that end it makes sense to support libgnutls which has a superset of the libgcrypt functionality. So add support for that one as well.

@bonzini bonzini force-pushed the without-libgcrypt branch 2 times, most recently from b525506 to 31ec184 Compare April 9, 2024 13:55
bonzini added 2 commits April 9, 2024 16:01
libgcrypt is a relatively large dependency that is used only for
the sake of computing MD5 in the CHAP authentication protocol.

Allow distributions to disable it forcibly and rely on the
embedded MD5 implementation.

Signed-off-by: Paolo Bonzini <[email protected]>
Implement a more generic wrapper API for message digests, so
that it is easier to also include gnutls as an option.

Signed-off-by: Paolo Bonzini <[email protected]>
@bonzini bonzini force-pushed the without-libgcrypt branch from 31ec184 to 2215928 Compare April 9, 2024 14:03
Signed-off-by: Paolo Bonzini <[email protected]>
@bonzini bonzini force-pushed the without-libgcrypt branch from 2215928 to 35fec3e Compare April 9, 2024 14:06
@sahlberg sahlberg merged commit 90e1916 into sahlberg:master Apr 9, 2024
2 checks passed
@sahlberg
Copy link
Owner

sahlberg commented Apr 9, 2024

Merged. Thanks!

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.

2 participants