|
@@ -32,7 +32,7 @@ static SecTrustRef AFUTTrustChainForCertsInDirectory(NSString *directoryPath) {
|
|
for (NSString *path in certFileNames) {
|
|
for (NSString *path in certFileNames) {
|
|
NSData *certData = [NSData dataWithContentsOfFile:[directoryPath stringByAppendingPathComponent:path]];
|
|
NSData *certData = [NSData dataWithContentsOfFile:[directoryPath stringByAppendingPathComponent:path]];
|
|
SecCertificateRef cert = SecCertificateCreateWithData(NULL, (__bridge CFDataRef)(certData));
|
|
SecCertificateRef cert = SecCertificateCreateWithData(NULL, (__bridge CFDataRef)(certData));
|
|
- [certs addObject:(__bridge id)(cert)];
|
|
|
|
|
|
+ [certs addObject:(__bridge_transfer id)(cert)];
|
|
}
|
|
}
|
|
|
|
|
|
SecPolicyRef policy = SecPolicyCreateBasicX509();
|
|
SecPolicyRef policy = SecPolicyCreateBasicX509();
|