]> git.saurik.com Git - apple/security.git/blobdiff - OSX/sec/Security/ios_tapi_hacks.h
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / sec / Security / ios_tapi_hacks.h
index 1367c4a9729386832dc02666651f0ba4f88b4fd2..e068beebef4e1bc658231061f9c8b695b057a16d 100644 (file)
@@ -57,27 +57,38 @@ typedef struct SecurityClient {
 extern struct securityd *gSecurityd;
 extern struct trustd *gTrustd;
 extern SecurityClient * SecSecurityClientGet(void);
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wvisibility"
 bool securityd_send_sync_and_do(enum SecXPCOperation op, CFErrorRef *error,
                                 bool (^add_to_message)(xpc_object_t message, CFErrorRef* error),
                                 bool (^handle_response)(xpc_object_t response, CFErrorRef* error));
+typedef void (^securityd_handler_t)(xpc_object_t reply, CFErrorRef error);
+void securityd_send_async_and_do(enum SecXPCOperation op, dispatch_queue_t replyq,
+                                                                bool (^add_to_message)(xpc_object_t message, CFErrorRef* error),
+                                                                securityd_handler_t handler);
 XPC_RETURNS_RETAINED xpc_object_t securityd_message_with_reply_sync(xpc_object_t message, CFErrorRef *error);
 XPC_RETURNS_RETAINED xpc_object_t securityd_create_message(enum SecXPCOperation op, CFErrorRef *error);
 bool securityd_message_no_error(xpc_object_t message, CFErrorRef *error);
+#pragma clang diagnostic pop
 
 @interface SecuritydXPCClient : NSObject
 @end
 
 void SecAccessGroupsSetCurrent(CFArrayRef accessGroups);
 CFArrayRef SecAccessGroupsGetCurrent(void);
+void SecSecurityClientRegularToAppClip(void);
+void SecSecurityClientAppClipToRegular(void);
+void SecSecurityClientSetApplicationIdentifier(CFStringRef identifier);
 
 #include <os/log_private.h>
 extern os_log_t secLogObjForScope(const char *scope);
 extern os_log_t secLogObjForCFScope(CFStringRef scope);
 #if TARGET_OS_IOS
 void SecSecuritySetMusrMode(bool mode, uid_t uid, int activeUser);
+void SecSecuritySetPersonaMusr(CFStringRef uuid);
 #endif // TARGET_OS_IOS
 
-void SecServerSetMachServiceName(const char *name);
+void SecServerSetTrustdMachServiceName(const char *name);
 
 #endif /* ios_tapi_hacks_h */