audk/NetworkPkg/IScsiDxe
Laszlo Ersek bb33c27fbe NetworkPkg: introduce the NETWORK_ISCSI_MD5_ENABLE feature test macro
Introduce the NETWORK_ISCSI_MD5_ENABLE feature test macro for NetworkPkg.
When explicitly set to FALSE, remove MD5 from IScsiDxe's CHAP algorithm
list.

Set NETWORK_ISCSI_MD5_ENABLE to TRUE by default, for compatibility
reasons. Not just to minimize the disruption for platforms that currently
include IScsiDxe, but also because RFC 7143 mandates MD5 for CHAP, and
some vendors' iSCSI targets support MD5 only.

With MD5 enabled, IScsiDxe will suggest SHA256, and then fall back to MD5
if the target requests it. With MD5 disabled, IScsiDxe will suggest
SHA256, and break off the connection (and session) if the target doesn't
support SHA256.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3355
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210629163337.14120-7-lersek@redhat.com>
2021-06-30 19:20:41 +00:00
..
ComponentName.c NetworkPkg/IScsiDxe: Fix various typos 2020-02-10 22:30:07 +00:00
IScsiAuthenticationInfo.c
IScsiCHAP.c NetworkPkg: introduce the NETWORK_ISCSI_MD5_ENABLE feature test macro 2021-06-30 19:20:41 +00:00
IScsiCHAP.h NetworkPkg/IScsiDxe: support SHA256 in CHAP 2021-06-30 19:20:41 +00:00
IScsiConfig.c NetworkPkg/IScsiDxe: Fix various typos 2020-02-10 22:30:07 +00:00
IScsiConfig.h
IScsiConfigNVDataStruc.h
IScsiConfigStrings.uni
IScsiConfigVfr.vfr
IScsiDhcp.c NetworkPkg/IScsiDxe: Enhance the check for array boundary 2020-04-26 06:20:32 +00:00
IScsiDhcp.h
IScsiDhcp6.c NetworkPkg/IScsiDxe: Enhance the check for array boundary 2020-04-26 06:20:32 +00:00
IScsiDhcp6.h
IScsiDns.c
IScsiDns.h
IScsiDriver.c NetworkPkg/IScsiDxe: support multiple hash algorithms for CHAP 2021-06-30 19:20:41 +00:00
IScsiDriver.h
IScsiDxe.inf NetworkPkg/IScsiDxe: fix potential integer overflow in IScsiBinToHex() 2021-06-09 17:25:03 +00:00
IScsiDxe.uni
IScsiDxeExtra.uni
IScsiExtScsiPassThru.c
IScsiIbft.c
IScsiIbft.h
IScsiImpl.h NetworkPkg/IScsiDxe: fix potential integer overflow in IScsiBinToHex() 2021-06-09 17:25:03 +00:00
IScsiInitiatorName.c
IScsiMisc.c NetworkPkg/IScsiDxe: fix IScsiHexToBin() buffer overflow 2021-06-09 17:25:03 +00:00
IScsiMisc.h NetworkPkg/IScsiDxe: fix IScsiHexToBin() buffer overflow 2021-06-09 17:25:03 +00:00
IScsiProto.c NetworkPkg/IScsiDxe: support multiple hash algorithms for CHAP 2021-06-30 19:20:41 +00:00
IScsiProto.h NetworkPkg/IScsiDxe: Fix various typos 2020-02-10 22:30:07 +00:00