diff options
author | Sebastien Pouliot <sebastien@xamarin.com> | 2013-05-29 05:09:06 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@xamarin.com> | 2013-05-29 05:09:06 +0400 |
commit | 4bc0c9dfe8caa5ab30ce20617ab5f123371fa333 (patch) | |
tree | 6151f7875ac6cb6843e523050a4c146ec3ac82e0 /mcs/class/System/System.Security.Cryptography.X509Certificates | |
parent | 48961ea9678d16dc48e55afa7c735fa32a519175 (diff) |
Change code to more linker friendly ways to create MD5 and X509Chain and allow, for iOS, the creation of X509Chain without requiring CryptoConfig
Diffstat (limited to 'mcs/class/System/System.Security.Cryptography.X509Certificates')
-rw-r--r-- | mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs | 2 | ||||
-rw-r--r-- | mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs index 18107591585..451be2db2c2 100644 --- a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs +++ b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs @@ -580,7 +580,7 @@ namespace System.Security.Cryptography.X509Certificates { if (_cert == null) throw new CryptographicException (empty_error); - X509Chain chain = (X509Chain) CryptoConfig.CreateFromName ("X509Chain"); + X509Chain chain = X509Chain.Create (); if (!chain.Build (this)) return false; // TODO - check chain and other stuff ??? diff --git a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs index 7dfd434c85a..02fee6da726 100644 --- a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs +++ b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs @@ -235,7 +235,11 @@ namespace System.Security.Cryptography.X509Certificates { public static X509Chain Create () { +#if FULL_AOT_RUNTIME + return new X509Chain (); +#else return (X509Chain) CryptoConfig.CreateFromName ("X509Chain"); +#endif } // private stuff |