Skip to content

Commit 55fa1d2

Browse files
committedJan 1, 2025
Update ChOma, update XPF
1 parent ef7a592 commit 55fa1d2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎BaseBin/XPF

Submodule XPF updated 43 files

‎BaseBin/libjailbreak/src/signatures.m

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#include <choma/FAT.h>
1+
#include <choma/Fat.h>
22
#include <choma/MachO.h>
33
#include <choma/Host.h>
44
#include <mach-o/dyld.h>
55
#include "trustcache.h"
66

77
#import <Foundation/Foundation.h>
88

9-
MachO *ljb_fat_find_preferred_slice(FAT *fat)
9+
MachO *ljb_fat_find_preferred_slice(Fat *fat)
1010
{
1111
cpu_type_t cputype;
1212
cpu_subtype_t cpusubtype;
@@ -77,7 +77,7 @@ bool csd_superblob_is_adhoc_signed(CS_DecodedSuperBlob *superblob)
7777
NSString *(^resolveRpaths)(NSString *) = ^NSString *(NSString *binaryPath) {
7878
if (!binaryPath) return nil;
7979
__block NSString *rpathResolvedPath = nil;
80-
FAT *fat = fat_init_from_path(binaryPath.fileSystemRepresentation);
80+
Fat *fat = fat_init_from_path(binaryPath.fileSystemRepresentation);
8181
if (fat) {
8282
MachO *macho = ljb_fat_find_preferred_slice(fat);
8383
if (macho) {
@@ -138,7 +138,7 @@ void macho_collect_untrusted_cdhashes(const char *path, const char *callerImageP
138138
};
139139

140140
if (!callerExecutablePath) {
141-
FAT *mainFAT = fat_init_from_path(path);
141+
Fat *mainFAT = fat_init_from_path(path);
142142
if (mainFAT) {
143143
MachO *mainMachO = NULL;
144144
if (preferredArchCount > 0) {
@@ -167,7 +167,7 @@ void macho_collect_untrusted_cdhashes(const char *path, const char *callerImageP
167167
__weak __block void (^binaryTrustHandler_recurse)(NSString *, NSString *, NSString *);
168168
void (^binaryTrustHandler)(NSString *, NSString *, NSString *) = ^(NSString *binaryPath, NSString *sourceImagePath, NSString *sourceExecutablePath) {
169169
NSString *resolvedBinaryPath = resolveDependencyPath(binaryPath, sourceImagePath, sourceExecutablePath);
170-
FAT *fat = fat_init_from_path(resolvedBinaryPath.fileSystemRepresentation);
170+
Fat *fat = fat_init_from_path(resolvedBinaryPath.fileSystemRepresentation);
171171
if (!fat) return;
172172
MachO *macho = NULL;
173173
if ([binaryPath isEqualToString:sourceExecutablePath]) {
@@ -196,7 +196,7 @@ void macho_collect_untrusted_cdhashes(const char *path, const char *callerImageP
196196
if (csd_superblob_is_adhoc_signed(decodedSuperblob)) {
197197
isAdhocSigned = true;
198198
cdhash_t cdhash;
199-
if (csd_superblob_calculate_best_cdhash(decodedSuperblob, cdhash) == 0) {
199+
if (csd_superblob_calculate_best_cdhash(decodedSuperblob, cdhash, NULL) == 0) {
200200
if (!cdhashesContains(cdhash)) {
201201
if (!is_cdhash_trustcached(cdhash)) {
202202
// If something is trustcached we do not want to add it to your array

0 commit comments

Comments
 (0)