X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/c38e3ce98599a410a47dc10253faa4d5830f13b2..427c49bcad63d042b29ada2ac27e3dfc4845c779:/authd/engine.h?ds=inline diff --git a/authd/engine.h b/authd/engine.h new file mode 100644 index 00000000..42170f08 --- /dev/null +++ b/authd/engine.h @@ -0,0 +1,38 @@ +/* Copyright (c) 2012 Apple Inc. All rights reserved. */ + +#ifndef _SECURITY_AUTH_ENGINE_H_ +#define _SECURITY_AUTH_ENGINE_H_ + +#include "credential.h" +#include + +#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 enviroment, 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_ */