[Mono.Security]: Add 'X509Chain' to ICertificateValidator.InvokeSystemValidator and...
authorMartin Baulig <martin.baulig@xamarin.com>
Tue, 17 Nov 2015 18:43:16 +0000 (13:43 -0500)
committerMartin Baulig <martin.baulig@xamarin.com>
Tue, 17 Nov 2015 20:54:44 +0000 (15:54 -0500)
commit9dea40613f475f434a7fac4daf3d6f2ea463ec57
tree48f12542323ae15b888fba16354a9abc5e126e9d
parente1e95f6e2977c0cde80492d2c21d25a3208706dd
[Mono.Security]: Add 'X509Chain' to ICertificateValidator.InvokeSystemValidator and MonoTlsProvider.InvokeSystemCertificateValidator.

On OS X and Mobile, the X509Chain will be initialized with all the
certificates from the X509CertificateCollection, but not actually
built.

ServicePointManager.ServerCertificateValidationCallback can use the 'chain' argument
to get all the certificates from the server.

(cherry picked from commit 73e37f0ecfd403780d60f36d8b0d68f27987b256)
mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs
mcs/class/Mono.Security/Mono.Security.Interface/MonoTlsProvider.cs
mcs/class/System/Mono.Net.Security/ChainValidationHelper.cs
mcs/class/System/Mono.Net.Security/SystemCertificateValidator.cs