Searched refs:code_dir (Results 1 - 2 of 2) sorted by relevance

/macosx-10.10/Security-57031.1.35/Security/sec/Security/Tool/
H A Dcodesign.c357 CFDataRef code_dir = CFDictionaryGetValue(signature, CFSTR("CodeDirectory")); local
358 const CS_CodeDirectory *cd = (CS_CodeDirectory *)CFDataGetBytePtr(code_dir);
373 if (SecCMSVerify(signed_data, code_dir, policy, NULL, NULL)) {
390 fprintf(stderr, "magic: 0x%x length: %u(%lu)\n", ntohl(cd->magic), ntohl(cd->length), CFDataGetLength(code_dir));
395 fprintf(stderr, "ident: '%s'\n", CFDataGetBytePtr(code_dir) + ntohl(cd->identOffset));
398 uint8_t *hashes = (uint8_t *)CFDataGetBytePtr(code_dir) + ntohl(cd->hashOffset);
/macosx-10.10/xnu-2782.1.97/bsd/kern/
H A Dubc_subr.c585 const CS_CodeDirectory *code_dir; local
599 if ((code_dir = (const CS_CodeDirectory *)cs_find_blob(csblob, CSSLOT_CODEDIRECTORY, CSMAGIC_CODEDIRECTORY)) == NULL)
603 embedded_hash = cs_find_special_slot(code_dir, CSSLOT_ENTITLEMENTS);
634 const CS_CodeDirectory *code_dir; local
643 if ((code_dir = (const CS_CodeDirectory *)cs_find_blob(csblob, CSSLOT_CODEDIRECTORY, CSMAGIC_CODEDIRECTORY)) == NULL)
646 if (code_dir->identOffset == 0)
649 return ((const char *)code_dir) + ntohl(code_dir->identOffset);

Completed in 77 milliseconds