Re: [PATCH] EAP-TTLS: Fix parsing auth= and autheap= Phase2 params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 06 December 2015 13:47:12 Jouni Malinen wrote:
> Could you please read the top level CONTRIBUTIONS file and resubmit this
> with Signed-off-by: line added so that I can apply the changes?

Ou, sorry, I forgot -s param in git commit... So add my:
Signed-off-by: Pali Rohár <pali.rohar@xxxxxxxxx>

> As far as the changes are concerned, would it be more useful to make
> phase2 parsing case insensitive to allow that previously invalid
> auth=MSCHAPv2 case to be parsed in the same way as the valid
> auth=MSCHAPV2 case?

I was thinking about it and it is not good idea. All auth (eap and non
eap) types are case sensitive and upper-case. And consistency here could
be good argument.

Second, this patch does not change documentation, it just fix parsing
code to work as expected. So config file from new version (after
applying this patch) should do same as if it is used by older version
(without this patch). But accepting lower-case MSCHAPv2 would mean that
new and old version would parse that argument differently.

More over, if we accept MSCHAPv2 and parse it as MSCHAPV2 it means that
people could start creating howto/manual on internet and use lowercase
MSCHAPv2. If somebody with older version of wpa supplicant will use that
howto/manual then it will use V1 and not V2!

So I rather do not allow MSCHAPv2 at all. That option was invalid and
due to parser error was mapped to V1. I really do not like idea when
software change meaning of some option when updating to new version.

-- 
Pali Rohár
pali.rohar@xxxxxxxxx

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux