Skip to content

Commit

Permalink
Fix rule evaluation for TeamID and SigningID rules when encountering …
Browse files Browse the repository at this point in the history
…broken signatures. (#1120)
  • Loading branch information
pmarkowsky committed Jun 30, 2023
1 parent afc2c21 commit d144e27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/santad/SNTPolicyProcessor.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ - (nonnull SNTCachedDecision *)decisionForFileInfo:(nonnull SNTFileInfo *)fileIn
csInfo = nil;
cd.decisionExtra =
[NSString stringWithFormat:@"Signature ignored due to error: %ld", (long)csInfoError.code];
cd.teamID = nil;
cd.signingID = nil;
} else {
cd.certSHA256 = csInfo.leafCertificate.SHA256;
cd.certCommonName = csInfo.leafCertificate.commonName;
Expand Down

0 comments on commit d144e27

Please sign in to comment.