Fix NTLM related test failures.
authorMartin Baulig <martin.baulig@xamarin.com>
Fri, 16 Nov 2012 21:03:49 +0000 (22:03 +0100)
committerMartin Baulig <martin.baulig@xamarin.com>
Wed, 21 Nov 2012 01:02:42 +0000 (02:02 +0100)
commit7d807ae8c3cfc80eada5ebffab9e94eda760e8e6
treeef246903cc573f73ccc8c0440f7adaec9e53624a
parenta9c7937cb3f97744870bf6e1f865c71de2ad974b
Fix NTLM related test failures.

* Provide a more descriptive [Obsolete] message for the legacy API.

* Refuse to send the LM response unless explicitly enabled with
  Type3Message.DefaultAuthLevel.  The LM response is only actually
  checked by old, pre-historic servers and sending it exposes the
  user's password to very weak encryption.

* Fix some problems when encoding / decoding problems in Type2Message.

* Type3Message now encodes host and domain name in a case-sensitive
  way, fixes the tests.
mcs/class/Mono.Security/Mono.Security.Protocol.Ntlm/ChallengeResponse.cs
mcs/class/Mono.Security/Mono.Security.Protocol.Ntlm/Type2Message.cs
mcs/class/Mono.Security/Mono.Security.Protocol.Ntlm/Type3Message.cs
mcs/class/Mono.Security/Test/Mono.Security.Protocol.Ntlm/Type3MessageTest.cs