sahlberg / libiscsi

iscsi client library and utilities
Other
192 stars 164 forks source link

allow choosing between libgcrypt, gnutls or embedded MD5 #418

Closed bonzini closed 7 months ago

bonzini commented 7 months ago

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.

sahlberg commented 7 months ago

Merged. Thanks!