Skip to content

Commit

Permalink
[unitytls] removed unused & unnecessary handling of intermediate cert…
Browse files Browse the repository at this point in the history
…ificates
  • Loading branch information
AndreasReich committed Dec 18, 2017
1 parent af58b51 commit 4a0611c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mcs/class/System/Mono.UnityTLS/CertHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<intermediates.Count; ++i) {
AddCertificateToNativeChain (nativeCertificateChain, new X509Certificate (intermediates[i]), errorState);
}
}
}
}

public static X509CertificateCollection NativeChainToManagedCollection (UnityTls.unitytls_x509list_ref nativeCertificateChain, UnityTls.unitytls_errorstate* errorState)
Expand Down

0 comments on commit 4a0611c

Please sign in to comment.