]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi-target; Enforce 1024 byte maximum for CHAP_C key value
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 13 Jun 2014 04:28:31 +0000 (04:28 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 27 Jun 2014 03:56:42 +0000 (20:56 -0700)
commited769a2bb7c672eeacc3aa526670c8439fc38122
tree40cd72769cbfe4aff41e428dc9b9206eb36bb4df
parentff7af8c9b1510a4b021f646fa360861cda187c3c
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 <rahul.rane@calsoftinc.com>
Tested-by: rahul.rane <rahul.rane@calsoftinc.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_auth.c