]> git.saurik.com Git - apple/security.git/blame - OSX/authd/engine.h
Security-58286.1.32.tar.gz
[apple/security.git] / OSX / authd / engine.h
CommitLineData
d8f41ccd 1/* Copyright (c) 2012-2013 Apple Inc. All Rights Reserved. */
427c49bc
A
2
3#ifndef _SECURITY_AUTH_ENGINE_H_
4#define _SECURITY_AUTH_ENGINE_H_
5
6#include "credential.h"
7#include <Security/Authorization.h>
8
9#if defined(__cplusplus)
10extern "C" {
11#endif
12
13AUTH_WARN_RESULT AUTH_MALLOC AUTH_NONNULL_ALL AUTH_RETURNS_RETAINED
14engine_t engine_create(connection_t, auth_token_t);
15
16AUTH_NONNULL1 AUTH_NONNULL2
5c19dc3a 17OSStatus engine_authorize(engine_t, auth_rights_t rights, auth_items_t environment, AuthorizationFlags);
427c49bc 18
866f8763
A
19AUTH_NONNULL1 AUTH_NONNULL2
20OSStatus engine_preauthorize(engine_t engine, auth_items_t credentials);
21
427c49bc
A
22AUTH_NONNULL_ALL
23OSStatus engine_verify_modification(engine_t, rule_t, bool remove, bool force_modify);
24
25AUTH_NONNULL_ALL
26auth_rights_t engine_get_granted_rights(engine_t);
27
28AUTH_NONNULL_ALL
29CFAbsoluteTime engine_get_time(engine_t);
30
31AUTH_NONNULL_ALL
32void engine_destroy_agents(engine_t);
33
34AUTH_NONNULL_ALL
35void engine_interrupt_agent(engine_t engine);
36
866f8763
A
37AUTH_NONNULL_ALL
38bool engine_acquire_sheet_data(engine_t engine);
39
40AUTH_NONNULL_ALL AUTH_RETURNS_RETAINED
41CFTypeRef engine_copy_context(engine_t engine, auth_items_t source);
42
427c49bc
A
43#if defined(__cplusplus)
44}
45#endif
46
47#endif /* !_SECURITY_AUTH_ENGINE_H_ */