summaryrefslogtreecommitdiff
path: root/drivers/target/iscsi/iscsi_target_nego.h
diff options
context:
space:
mode:
authorDmitry Bogdanov <d.bogdanov@yadro.com>2022-07-18 18:25:54 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-07-27 05:13:28 +0300
commite52b904b49273df35766826ce8dfb8cc3dd1ff37 (patch)
tree39b9cbb8ea342e7dca54dbbc37877fe56c1cc5b1 /drivers/target/iscsi/iscsi_target_nego.h
parent1e5733883421495908f3b90d9d807663038b4136 (diff)
downloadlinux-e52b904b49273df35766826ce8dfb8cc3dd1ff37.tar.xz
scsi: target: iscsi: Allow AuthMethod=None
Allow negotiating AuthMethod=None at CSG=0 (Security Negotiation) when authentication is not required. That is required by the CHAP test in Windows HLK. Link: https://lore.kernel.org/r/20220718152555.17084-4-d.bogdanov@yadro.com Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_nego.h')
-rw-r--r--drivers/target/iscsi/iscsi_target_nego.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target_nego.h b/drivers/target/iscsi/iscsi_target_nego.h
index 21d3cab90d08..41c3db3ddeaa 100644
--- a/drivers/target/iscsi/iscsi_target_nego.h
+++ b/drivers/target/iscsi/iscsi_target_nego.h
@@ -22,5 +22,5 @@ extern int iscsi_target_locate_portal(struct iscsi_np *, struct iscsit_conn *,
extern int iscsi_target_start_negotiation(
struct iscsi_login *, struct iscsit_conn *);
extern void iscsi_target_nego_release(struct iscsit_conn *);
-
+extern bool iscsi_conn_auth_required(struct iscsit_conn *conn);
#endif /* ISCSI_TARGET_NEGO_H */