]>
git.saurik.com Git - apple/security.git/blob - OSX/authd/server.h
1 /* Copyright (c) 2012-2013 Apple Inc. All Rights Reserved. */
3 #ifndef _SECURITY_AUTH_SERVER_H_
4 #define _SECURITY_AUTH_SERVER_H_
6 #include "authd_private.h"
9 #if defined(__cplusplus)
13 OSStatus
server_init(void);
14 void server_cleanup(void);
15 bool server_in_dark_wake(void);
16 authdb_t
server_get_database(void);
19 connection_t
server_register_connection(xpc_connection_t
);
22 void server_unregister_connection(connection_t
);
25 void server_register_auth_token(auth_token_t
);
28 void server_unregister_auth_token(auth_token_t
);
31 auth_token_t
server_find_copy_auth_token(AuthorizationBlob
* blob
);
34 session_t
server_find_copy_session(session_id_t
,bool create
);
36 void server_dev(void);
41 OSStatus
authorization_create(connection_t
,xpc_object_t
,xpc_object_t
);
44 OSStatus
authorization_create_with_audit_token(connection_t
,xpc_object_t
,xpc_object_t
);
47 OSStatus
authorization_free(connection_t
,xpc_object_t
,xpc_object_t
);
50 OSStatus
authorization_copy_rights(connection_t
,xpc_object_t
,xpc_object_t
);
53 OSStatus
authorization_copy_info(connection_t
,xpc_object_t
,xpc_object_t
);
56 OSStatus
authorization_make_external_form(connection_t
,xpc_object_t
,xpc_object_t
);
59 OSStatus
authorization_create_from_external_form(connection_t
,xpc_object_t
,xpc_object_t
);
62 OSStatus
authorization_right_get(connection_t
,xpc_object_t
,xpc_object_t
);
65 OSStatus
authorization_right_set(connection_t
,xpc_object_t
,xpc_object_t
);
68 OSStatus
authorization_enable_smartcard(connection_t
,xpc_object_t
,xpc_object_t
);
71 OSStatus
authorization_right_remove(connection_t
,xpc_object_t
,xpc_object_t
);
74 OSStatus
session_set_user_preferences(connection_t
,xpc_object_t
,xpc_object_t
);
76 #if defined(__cplusplus)
80 #endif /* !_SECURITY_AUTH_SERVER_H_ */