]> git.saurik.com Git - apple/security.git/blobdiff - OSX/authd/engine.h
Security-57336.1.9.tar.gz
[apple/security.git] / OSX / authd / engine.h
diff --git a/OSX/authd/engine.h b/OSX/authd/engine.h
new file mode 100644 (file)
index 0000000..45a0420
--- /dev/null
@@ -0,0 +1,38 @@
+/* Copyright (c) 2012-2013 Apple Inc. All Rights Reserved. */
+
+#ifndef _SECURITY_AUTH_ENGINE_H_
+#define _SECURITY_AUTH_ENGINE_H_
+
+#include "credential.h"
+#include <Security/Authorization.h>
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+AUTH_WARN_RESULT AUTH_MALLOC AUTH_NONNULL_ALL AUTH_RETURNS_RETAINED
+engine_t engine_create(connection_t, auth_token_t);
+
+AUTH_NONNULL1 AUTH_NONNULL2
+OSStatus engine_authorize(engine_t, auth_rights_t rights, auth_items_t environment, AuthorizationFlags);
+
+AUTH_NONNULL_ALL
+OSStatus engine_verify_modification(engine_t, rule_t, bool remove, bool force_modify);
+
+AUTH_NONNULL_ALL
+auth_rights_t engine_get_granted_rights(engine_t);
+
+AUTH_NONNULL_ALL
+CFAbsoluteTime engine_get_time(engine_t);
+    
+AUTH_NONNULL_ALL
+void engine_destroy_agents(engine_t);
+    
+AUTH_NONNULL_ALL
+void engine_interrupt_agent(engine_t engine);
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif /* !_SECURITY_AUTH_ENGINE_H_ */