Fix linphone lib reload

This commit is contained in:
Yann Diorcet 2012-10-18 10:35:23 +02:00
parent d2253e0532
commit 6d02300296

View file

@ -257,8 +257,8 @@
}
}
[self reloadCertificates];
dispatch_async(dispatch_get_main_queue(), ^{
[self reloadCertificates];
[delegate buschJaegerConfigurationSuccess];
});
});
@ -511,6 +511,9 @@
if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) {
SecTrustRef trust = [challenge.protectionSpace serverTrust];
NSArray *anchors = (NSArray*)certificates;
if(anchors == nil) {
anchors = [NSArray array];
}
SecTrustSetAnchorCertificates(trust, (CFArrayRef)anchors);
SecTrustSetAnchorCertificatesOnly(trust, YES);