SecCodeCheckValidityWithProcessRequirement(code:flags:requirement:)
Checks whether the code associated with a running process satisfies a lightweight code requirement.
Declaration
func SecCodeCheckValidityWithProcessRequirement(code: SecCode, flags: SecCSFlags, requirement: ProcessCodeRequirement) -> ValidationResultDiscussion
Returns a validation result which indicates whether the code signature is valid, whether it matches the requirement, and if not one of those two, then why not.