On Wednesday 17 Mar 2010 10:08:00 Kevin Tran wrote: > Current code only handles challenge response that is string of hex numbers > that started with either “0x”. The challenge sent back by this target is > in base64 format. I think we need to add base64 (per RFC 3720) format > support in order to solve this problem.
Exactly what I was going to say. gPXE does not currently support base64- encoded CHAP challenges (or responses). We have base64 encoding support in core/base64.c, but no decoding support. Someone will need to add base64_decode() base64_decoded_len() functions, and modify iscsi.c to be able to use them; this is probably best done by abstracting out the two places that currently process large hex strings into a single iscsi_decode_large_binary() function. Michael _______________________________________________ gPXE mailing list [email protected] http://etherboot.org/mailman/listinfo/gpxe
