mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-04 12:27:40 +00:00
Update some missing mach0 defines
This commit is contained in:
parent
9ae01a3c97
commit
e4e0cdeffa
@ -773,7 +773,10 @@ static bool parse_signature(struct MACH0_(obj_t) *bin, ut64 off) {
|
||||
parseCodeDirectory (bin->b, data + idx.offset, link.datasize);
|
||||
}
|
||||
break;
|
||||
case 0x10000: // ASN1/DER certificate
|
||||
case 0x1000:
|
||||
// unknown
|
||||
break;
|
||||
case CSSLOT_CMS_SIGNATURE: // ASN1/DER certificate
|
||||
if (isVerbose) {
|
||||
ut8 header[8] = {0};
|
||||
r_buf_read_at (bin->b, data + idx.offset, header, sizeof (header));
|
||||
|
@ -17,12 +17,23 @@
|
||||
#define CSMAGIC_REQUIREMENT 0xfade0c00 /* single Requirement blob */
|
||||
#define CSMAGIC_REQUIREMENTS 0xfade0c01 /* Requirements vector (internal requirements) */
|
||||
|
||||
#define CS_PAGE_SIZE 4096
|
||||
|
||||
#define CS_HASHTYPE_SHA1 1
|
||||
#define CS_HASHTYPE_SHA256 2
|
||||
#define CS_HASHTYPE_SHA256_TRUNCATED 3
|
||||
|
||||
#define CS_HASH_SIZE_SHA1 20
|
||||
#define CS_HASH_SIZE_SHA256 32
|
||||
#define CS_HASH_SIZE_SHA256_TRUNCATED 20
|
||||
|
||||
#define CSSLOT_CODEDIRECTORY 0
|
||||
#define CSSLOT_INFOSLOT 1
|
||||
#define CSSLOT_REQUIREMENTS 2
|
||||
#define CSSLOT_RESOURCEDIR 3
|
||||
#define CSSLOT_APPLICATION 4
|
||||
#define CSSLOT_ENTITLEMENTS 5
|
||||
#define CSSLOT_CMS_SIGNATURE 0x10000
|
||||
|
||||
struct section_t {
|
||||
ut64 offset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user