         }
         return false
     }
-
-    private func certificateData(for trust: SecTrust) -> [Data] {
-        var certificates: [SecCertificate] = []
-
-        for index in 0..<SecTrustGetCertificateCount(trust) {
-            if let certificate = SecTrustGetCertificateAtIndex(trust, index) {
-                certificates.append(certificate)
-            }
-        }
-
-        return certificateData(for: certificates)
-    }
-
-    private func certificateData(for certificates: [SecCertificate]) -> [Data] {
-        return certificates.map { SecCertificateCopyData($0) as Data }
-    }
 }
 
 public class PinPublicKeys: NSObject, ServerTrustPolicy {

    }
}

public class DefaultEvaluation: NSObject, ServerTrustPolicy {
    private let validateHost: Bool


            SecTrustSetAnchorCertificatesOnly(serverTrust, true)
            return trustIsValid(serverTrust)
        } else {
            let serverCertificatesDataArray = PinCertificates.certificateData(for: serverTrust)
            let pinnedCertificatesDataArray = PinCertificates.certificateData(for: pinnedCertificates)

            for serverCertificateData in serverCertificatesDataArray {
                for pinnedCertificateData in pinnedCertificatesDataArray {
