Skip to content

Commit

Permalink
Prefix signingID with teamID or platform
Browse files Browse the repository at this point in the history
  • Loading branch information
np5 committed May 17, 2024
1 parent 3dd2a1e commit 5495118
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Source/santabundleservice/SNTBundleService.m
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,17 @@ - (NSDictionary *)generateEventsFromBinaries:(NSArray *)fis

MOLCodesignChecker *cs = [fi codesignCheckerWithError:NULL];
se.signingChain = cs.certificates;
se.teamID = cs.teamID;
se.signingID = cs.signingID;
se.cdhash = cs.cdhash;
se.teamID = cs.teamID;
if (cs.signingID) {
if (cs.teamID) {
se.signingID = [NSString stringWithFormat:@"%@:%@", cs.teamID, cs.signingID];
} else {
if (cs.platformBinary) {
se.signingID = [NSString stringWithFormat:@"platform:%@", cs.signingID];
}
}
}

dispatch_sync(dispatch_get_main_queue(), ^{
relatedEvents[se.fileSHA256] = se;
Expand Down

0 comments on commit 5495118

Please sign in to comment.