[corlib]: Cleanup X509Helper.Import().
authorMartin Baulig <martin.baulig@xamarin.com>
Thu, 5 May 2016 19:55:54 +0000 (15:55 -0400)
committerMartin Baulig <martin.baulig@xamarin.com>
Fri, 6 May 2016 19:58:44 +0000 (15:58 -0400)
commit67d87ebc1e1efa3321e3b46ff2b2d55d3488fe4c
tree1952ad98c7b1f0d9e597eaa6f536bbecb8bf5690
parentb5bde9cf42f0b739f6ce9e1481f0be76998644b5
[corlib]: Cleanup X509Helper.Import().

Only attempt the automatic PEM->DER conversion when no password was given
and make this version of X509Helper.Import() also take care of the fallback.

(cherry picked from commit 63a214c3f02c6ac28d19a8ca95f7f39c1e31a072)
mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.Apple.cs
mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.cs