mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 00:59:20 +00:00
Fix linphone lib reload
This commit is contained in:
parent
d2253e0532
commit
6d02300296
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue