]> git.saurik.com Git - apple/security.git/blobdiff - sec/SOSCircle/osxshim.c
Security-55471.tar.gz
[apple/security.git] / sec / SOSCircle / osxshim.c
diff --git a/sec/SOSCircle/osxshim.c b/sec/SOSCircle/osxshim.c
new file mode 100644 (file)
index 0000000..2468f08
--- /dev/null
@@ -0,0 +1,30 @@
+//
+//  osxshim.c
+//  sec
+//
+//  Created by J Osborne on 12/4/12.
+//
+//
+
+#include <stdbool.h>
+
+typedef void *SOSDataSourceFactoryRef;
+typedef void *SOSAccountRef;
+
+// XXX Need to plumb these from security to secd.   If we can.
+
+typedef SOSDataSourceFactoryRef (^AccountDataSourceFactoryBlock)();
+
+bool SOSKeychainAccountSetFactoryForAccount(AccountDataSourceFactoryBlock factory);
+
+bool SOSKeychainAccountSetFactoryForAccount(AccountDataSourceFactoryBlock factory)
+{
+    return false;
+}
+
+SOSAccountRef SOSKeychainAccountGetSharedAccount(void);
+
+SOSAccountRef SOSKeychainAccountGetSharedAccount(void)
+{
+    return (void*)0;
+}