From 4a0611cc59181aea4ce19c9c55bad6db090ad499 Mon Sep 17 00:00:00 2001 From: andreasr Date: Mon, 18 Dec 2017 10:52:29 +0100 Subject: [PATCH] [unitytls] removed unused & unnecessary handling of intermediate certificates --- mcs/class/System/Mono.UnityTLS/CertHelper.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mcs/class/System/Mono.UnityTLS/CertHelper.cs b/mcs/class/System/Mono.UnityTLS/CertHelper.cs index c21b12cb9d5b..d3701afd1031 100644 --- a/mcs/class/System/Mono.UnityTLS/CertHelper.cs +++ b/mcs/class/System/Mono.UnityTLS/CertHelper.cs @@ -18,16 +18,6 @@ public static void AddCertificateToNativeChain (UnityTls.unitytls_x509list* nati fixed(byte* certDerPtr = certDer) { UnityTls.unitytls_x509list_append_der (nativeCertificateChain, certDerPtr, certDer.Length, errorState); } - - var certificateImpl2 = certificate.Impl as X509Certificate2Impl; - if (certificateImpl2 != null) { - var intermediates = certificateImpl2.IntermediateCertificates; - if (intermediates != null && intermediates.Count > 0) { - for (int i=0; i