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

Add support for SHA1, SHA256 and SHA3-256 CHAP #304

Open
ddiss opened this issue Nov 6, 2019 · 3 comments
Open

Add support for SHA1, SHA256 and SHA3-256 CHAP #304

ddiss opened this issue Nov 6, 2019 · 3 comments

Comments

@ddiss
Copy link
Contributor

ddiss commented Nov 6, 2019

Upstream open-iscsi (open-iscsi/open-iscsi#170) and LIO (queued at https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=5.5/scsi-queue&id=a572d24af4d16e70743feb0b4decb17aaae7ce43) now have support for SHA1, SHA256 and SHA3-256 CHAP authentication.

The new algorithm identifiers have been officially assigned via https://www.iana.org/assignments/ppp-numbers/ppp-numbers.xml#ppp-numbers-9 . It'd be great if libiscsi picked up support for these too.

@ddiss
Copy link
Contributor Author

ddiss commented Nov 6, 2019

CHAP with MD5 currently uses the in-tree lib/md5.c library. For the new algorithms I think it'd make sense to pull in openssl (like libsmb2). Should we keep the in-tree md5 lib around and conditionally add support for the new algorithms only if openssl is present?
It'd obviously be much simpler if we just make openssl a hard dependency and drop bundled md5 support.

@ddiss
Copy link
Contributor Author

ddiss commented Nov 6, 2019

Hmm, actually I see that an optional libgcrypt dependency is already there, with fallback to bundled md5.

@sahlberg
Copy link
Owner

sahlberg commented Nov 6, 2019 via email

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

No branches or pull requests

2 participants