[btls]: Fix MonoBtlsX509Store.cs.AddTrustedRoots(). (#4340)
authorMartin Baulig <martin.baulig@xamarin.com>
Wed, 8 Feb 2017 16:12:02 +0000 (17:12 +0100)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2017 16:12:02 +0000 (17:12 +0100)
This internal method is only called from Mono.Btls.Interface.BtlsStore
and used by the web-tests.

Call MonoBtlsProvider.SetupCertificateStore(store) to make its
behavior consistent with the internal implementation.

mcs/class/System/Mono.Btls/MonoBtlsX509Store.cs

index 537993566e53a6a1c7fd2cf9e978639e928224c2..3aafbd4a7f585d24cee02456e29a97a8edd9569b 100644 (file)
@@ -159,8 +159,7 @@ namespace Mono.Btls
 
                internal void AddTrustedRoots ()
                {
-                       var systemRoot = MonoBtlsProvider.GetSystemStoreLocation ();
-                       LoadLocations (null, systemRoot);
+                       MonoBtlsProvider.SetupCertificateStore (this);
                }
 
                public MonoBtlsX509Lookup AddLookup (MonoBtlsX509LookupType type)