diff options
author | Martin Baulig <mabaul@microsoft.com> | 2019-02-14 06:27:19 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-02-14 20:27:13 +0300 |
commit | 5c754423f29249322a257503c8b1fe3532b250cb (patch) | |
tree | 95b864bfec59182d0018ec2cff12fd4ef255fef4 /mcs/class/Mono.Btls.Interface | |
parent | 347af5d61f6b4ceefb3ef282412970b0bfd279da (diff) |
Pass X509Certificate2 to the certificate validator.
This makes us consistent with corefx; see also
https://github.com/dotnet/corefx/pull/35306.
Using `X509Certificate` has become a problem because the
`HttpClientHandler.ServerCertificateCustomValidationCallback`
callback takes an `X509Certificate2` parameter.
Diffstat (limited to 'mcs/class/Mono.Btls.Interface')
-rw-r--r-- | mcs/class/Mono.Btls.Interface/Mono.Btls.Interface/BtlsProvider.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/Mono.Btls.Interface/Mono.Btls.Interface/BtlsProvider.cs b/mcs/class/Mono.Btls.Interface/Mono.Btls.Interface/BtlsProvider.cs index 5fee46a7460..369e2155376 100644 --- a/mcs/class/Mono.Btls.Interface/Mono.Btls.Interface/BtlsProvider.cs +++ b/mcs/class/Mono.Btls.Interface/Mono.Btls.Interface/BtlsProvider.cs @@ -55,12 +55,12 @@ namespace Mono.Btls.Interface public static X509Certificate2 CreateCertificate2 (byte[] data, BtlsX509Format format, bool disallowFallback = false) { - return MonoBtlsProvider.CreateCertificate2 (data, (MonoBtlsX509Format)format); + return MonoBtlsProvider.CreateCertificate (data, (MonoBtlsX509Format)format); } public static X509Certificate2 CreateCertificate2 (byte[] data, string password, bool disallowFallback = false) { - return MonoBtlsProvider.CreateCertificate2 (data, password); + return MonoBtlsProvider.CreateCertificate (data, password); } public static BtlsX509Chain CreateNativeChain () |