Add CHAP SHA3-256 support

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2025-01-04 14:20:28 +10:00
parent 34e83f7dbd
commit b8d9fbf5e3
7 changed files with 272 additions and 6 deletions

View File

@@ -630,10 +630,8 @@ iscsi_parse_url(struct iscsi_context *iscsi, const char *url, int full)
iscsi->chap_auth = ISCSI_CHAP_SHA_1;
} else if (!strcmp(value, "sha-256")) {
iscsi->chap_auth = ISCSI_CHAP_SHA_256;
#if 0
} else if (!strcmp(value, "sha3-256")) {
iscsi->chap_auth = ISCSI_CHAP_SHA3_256;
#endif
} else {
iscsi_set_error(iscsi,
"Invalid argument for auth: %s", value);