-enum {
- kSecCodeSignatureNoHash = 0, /* null value */
- kSecCodeSignatureHashSHA1 = 1, /* SHA-1 */
- kSecCodeSignatureHashSHA256 = 2, /* SHA-256 */
- kSecCodeSignatureHashSHA256Truncated = 3, /* SHA-256 truncated to first 20 bytes */
-
- kSecCodeSignatureDefaultDigestAlgorithm = kSecCodeSignatureHashSHA1
+typedef CF_OPTIONS(uint32_t, SecCodeExecSegFlags) {
+ kSecCodeExecSegMainBinary = 0x0001, /* exec seg belongs to main binary */
+
+ // Entitlements
+ kSecCodeExecSegAllowUnsigned = 0x0010, /* allow unsigned pages (for debugging) */
+ kSecCodeExecSegDebugger = 0x0020, /* main binary is debugger */
+ kSecCodeExecSegJit = 0x0040, /* JIT enabled */
+ kSecCodeExecSegSkipLibraryVal = 0x0080, /* skip library validation */
+ kSecCodeExecSegCanLoadCdHash = 0x0100, /* can bless cdhash for execution */
+ kSecCodeExecSegCanExecCdHash = 0x0200, /* can execute blessed cdhash */