2010-03-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 1 Mar 2010 09:01:14 +0000 (09:01 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 1 Mar 2010 09:01:14 +0000 (09:01 -0000)
commit5c20ab97e698f740e832e316506839cc685f9b4b
tree4c8b366f619c5b116d1e0027a6c36377eb87cc24
parentc8bcd55c9120437472d8f9dc59582473ab8864a3
2010-03-01 Gonzalo Paniagua Javier <gonzalo@novell.com>

* System.Net/WebConnection.cs: attach a validation callback to the new
event in Mono.Security.
* System.Net/ServicePointManager.cs: added a new ValidationHelper
class that takes care of building the certificate chain and perform
all the check that were done in Mono.Security before. This way the 2.0
server certificate validation callback can get all the data it needs.
* System.Net.Security/SslStream.cs: don't do anything if a chain
element has no error.

Fixes bug #584050.

svn path=/trunk/mcs/; revision=152654
mcs/class/System/System.Net.Security/ChangeLog
mcs/class/System/System.Net.Security/SslStream.cs
mcs/class/System/System.Net/ChangeLog
mcs/class/System/System.Net/ServicePointManager.cs
mcs/class/System/System.Net/WebConnection.cs