]> git.saurik.com Git - apple/security.git/blobdiff - sectask/SecTask.h
Security-57740.31.2.tar.gz
[apple/security.git] / sectask / SecTask.h
index e98ff382d60846ce90fa71884d3869c1c915cbd5..22200f3a794331ea83ef107f662a99a0c5f34329 100644 (file)
 
 #include <CoreFoundation/CoreFoundation.h>
 #include <mach/message.h>
+#include <sys/cdefs.h>
 
-#if defined(__cplusplus)
-extern "C" {
-#endif
+__BEGIN_DECLS
 
 /*!
     @typedef SecTaskRef
     @abstract CFType used for representing a task
 */
-typedef struct __SecTask *SecTaskRef;
+typedef struct CF_BRIDGED_TYPE(id) __SecTask *SecTaskRef;
 
 /*!
     @function SecTaskGetTypeID
@@ -105,8 +104,14 @@ CFDictionaryRef SecTaskCopyValuesForEntitlements(SecTaskRef task, CFArrayRef ent
 */
 CFStringRef SecTaskCopySigningIdentifier(SecTaskRef task, CFErrorRef *error);
 
-#if defined(__cplusplus)
-}
-#endif
+/*!
+    @function SecTaskGetCodeSignStatus
+    @abstract Return the code sign status flags
+    @param task A previously created SecTask object
+*/
+
+uint32_t SecTaskGetCodeSignStatus(SecTaskRef task);
+
+__END_DECLS
 
 #endif /* !_SECURITY_SECTASK_H_ */