@constant kSecCSCheckNestedCode
For code in bundle form, locate and recursively check embedded code. Only code
in standard locations is considered.
+ @constant kSecCSStrictValidate
+ For code in bundle form, perform additional checks to verify that the bundle
+ is not structured in a way that would allow tampering, and reject any resource
+ envelope that introduces weaknesses into the signature.
@param requirement On optional code requirement specifying additional conditions
the staticCode object must satisfy to be considered valid. If NULL, no additional
kSecCSDoNotValidateResources = 1 << 2,
kSecCSBasicValidateOnly = kSecCSDoNotValidateExecutable | kSecCSDoNotValidateResources,
kSecCSCheckNestedCode = 1 << 3,
+ kSecCSStrictValidate = 1 << 4,
};
OSStatus SecStaticCodeCheckValidity(SecStaticCodeRef staticCode, SecCSFlags flags,