|
|
@@ -178,7 +178,14 @@ public enum ServerTrustPolicy {
|
|
|
serverTrustIsValid = trustIsValid(serverTrust)
|
|
|
} else {
|
|
|
let serverCertificatesDataArray = certificateDataForTrust(serverTrust)
|
|
|
- let pinnedCertificatesDataArray = certificateDataForCertificates(pinnedCertificates)
|
|
|
+
|
|
|
+ //======================================================================================================
|
|
|
+ // The following `[] +` is a temporary workaround for a Swift 2.0 compiler error. This workaround should
|
|
|
+ // be removed once the following radar has been resolved:
|
|
|
+ // - http://openradar.appspot.com/radar?id=6082025006039040
|
|
|
+ //======================================================================================================
|
|
|
+
|
|
|
+ let pinnedCertificatesDataArray = certificateDataForCertificates([] + pinnedCertificates)
|
|
|
|
|
|
outerLoop: for serverCertificateData in serverCertificatesDataArray {
|
|
|
for pinnedCertificateData in pinnedCertificatesDataArray {
|