summaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/iscsi_target_auth.h
diff options
context:
space:
mode:
authorTejas Vaykole2014-05-30 07:43:47 +0200
committerNicholas Bellinger2014-06-06 04:44:02 +0200
commit3160723c49605965628c3ee7699e5e956c4f8f51 (patch)
treefcba72fafb5e7e4e6908cb6238962585a60189a0 /drivers/target/iscsi/iscsi_target_auth.h
parentiscsi-target: Put length of failed allocation in error message (diff)
downloadkernel-qcow2-linux-3160723c49605965628c3ee7699e5e956c4f8f51.tar.gz
kernel-qcow2-linux-3160723c49605965628c3ee7699e5e956c4f8f51.tar.xz
kernel-qcow2-linux-3160723c49605965628c3ee7699e5e956c4f8f51.zip
iscsi-target: Fix CHAP_A parameter list handling
The target is failing to handle list of CHAP_A key-value pair form initiator.The target is expecting CHAP_A=5 always. In other cases, where initiator sends list (for example) CHAP_A=6,5 target is failing the security negotiation. Which is incorrect. This patch handles the case (RFC 3720 section 11.1.4). where in the initiator may send list of CHAP_A values and target replies with appropriate CHAP_A value in response (Drop whitespaces + rename to chap_check_algorithm + save original pointer + add explicit check for CHAP_A key - nab) Signed-off-by: Tejas Vaykole <tejas.vaykole@calsoftinc.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_auth.h')
-rw-r--r--drivers/target/iscsi/iscsi_target_auth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/iscsi/iscsi_target_auth.h b/drivers/target/iscsi/iscsi_target_auth.h
index 2f463c09626d..d22f7b96a06c 100644
--- a/drivers/target/iscsi/iscsi_target_auth.h
+++ b/drivers/target/iscsi/iscsi_target_auth.h
@@ -1,6 +1,7 @@
#ifndef _ISCSI_CHAP_H_
#define _ISCSI_CHAP_H_
+#define CHAP_DIGEST_UNKNOWN 0
#define CHAP_DIGEST_MD5 5
#define CHAP_DIGEST_SHA 6