From: Nicholas Bellinger Date: Fri, 13 Jun 2014 04:28:31 +0000 (+0000) Subject: iscsi-target; Enforce 1024 byte maximum for CHAP_C key value X-Git-Tag: omap-for-v3.16/fixes-rc4~39^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4fae2318b5ddd7aec0e65871f1b455b796cf33d;p=pandora-kernel.git iscsi-target; Enforce 1024 byte maximum for CHAP_C key value This patch adds a check in chap_server_compute_md5() to enforce a 1024 byte maximum for the CHAP_C key value following the requirement in RFC-3720 Section 11.1.4: "..., C and R are large-binary-values and their binary length (not the length of the character string that represents them in encoded form) MUST not exceed 1024 bytes." Reported-by: rahul.rane Tested-by: rahul.rane Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed