]> git.saurik.com Git - apple/security.git/blobdiff - codesign_wrapper/MISEntitlement.h
Security-57031.1.35.tar.gz
[apple/security.git] / codesign_wrapper / MISEntitlement.h
diff --git a/codesign_wrapper/MISEntitlement.h b/codesign_wrapper/MISEntitlement.h
new file mode 100644 (file)
index 0000000..8ad1e66
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * MISEntitlements.h
+ *   Constants and interfaces for dealing with entitlements
+ */
+
+#ifndef MISENTITLEMENT_H
+#define MISENTITLEMENT_H
+
+#include <MISBase.h>
+
+#include <CoreFoundation/CoreFoundation.h>
+
+
+/* Return an array of all known entitlements */
+MIS_EXPORT CFArrayRef MISEntitlementCopyAllEntitlements(void);
+
+/*
+ * Check if the entitlement dictionary permits an entitlement to have the
+ * given value
+ */
+Boolean MISEntitlementDictionaryAllowsEntitlementValue(CFDictionaryRef entitlements, CFStringRef entitlement, CFTypeRef value);
+
+#endif