]>
git.saurik.com Git - apple/security.git/blob - OSX/codesign_tests/main.c
2 // Copyright (c) 2011 Apple. All rights reserved.
5 #include <Security/Security.h>
6 #include <Security/SecTask.h>
10 int main (int argc
, const char * argv
[])
15 SecTaskRef secTask
= SecTaskCreateFromSelf(NULL
);
17 errx(1, "SecTaskCreateFromSelf");
19 CFErrorRef error
= NULL
;
20 CFTypeRef value
= SecTaskCopyValueForEntitlement(secTask
, CFSTR("com.apple.security.some-entitlement"), &error
);
22 errx(1, "SecTaskCopyValueForEntitlement");