#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
*/
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_ */