iscsi-target: use native hex2bin for chap_string_to_hex
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 30 Sep 2011 11:39:54 +0000 (14:39 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:20:48 +0000 (03:20 +0000)
commitf2b56afd406b455fba339a35f43bfc4ada198073
treef11190e11015c65d75b24ffbd8dee08db2e409e5
parenta3eedc227bfa7c9e21ef3cebe164d06a4c507a71
iscsi-target: use native hex2bin for chap_string_to_hex

This patch converts chap_string_to_hex() to use hex2bin() instead of
the internal chap_asciihex_to_binaryhex().

(nab: Fix up minor compile breakage + typo)

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_auth.c