Skip to content

Commit

Permalink
Merge pull request #40 from Spaino/fix_20240218_llb
Browse files Browse the repository at this point in the history
fix(bug): 修复预加载证书数据失败
  • Loading branch information
shaojiankui authored Feb 19, 2024
2 parents 381f562 + 97376d8 commit 1492bee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SmartPush/PushViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ - (void)prepareCerData{
}

// Create identity.
_connectResult = SecIdentityCreateWithCertificate(_keychain, _currentSec.certificateRef, &_identity);
SecCertificateRef certificateRef = _currentSec.certificateRef;
_connectResult = SecIdentityCreateWithCertificate(NULL, certificateRef, &_identity);
// NSLog(@"SecIdentityCreateWithCertificate(): %d", result);
if(_connectResult != errSecSuccess ){
[self log:[NSString stringWithFormat:@"SSL端点域名不能被设置 %d",_connectResult] warning:YES];
Expand Down

0 comments on commit 1492bee

Please sign in to comment.