-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
286 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
project(MobileKeyBag) | ||
|
||
add_darling_static_library(MobileKeyBag | ||
SOURCES | ||
src/MobileKeyBag.c | ||
) | ||
|
||
target_include_directories(MobileKeyBag PUBLIC | ||
include | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef _MOBILE_KEY_BAG_H_ | ||
#define _MOBILE_KEY_BAG_H_ | ||
|
||
#include <CoreFoundation/CoreFoundation.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef struct __MKBKeyBagHandle* MKBKeyBagHandleRef; | ||
|
||
int MKBKeyBagCreateWithData(CFDataRef keybagBlob, MKBKeyBagHandleRef* newHandle); | ||
int MKBKeyBagGetAKSHandle(MKBKeyBagHandleRef keybag, int32_t* handle); | ||
int MKBKeyBagUnlock(MKBKeyBagHandleRef keybag, CFDataRef passcode); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // _MOBILE_KEY_BAG_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <MobileKeyBag/MobileKeyBag.h> | ||
#include <stdio.h> | ||
|
||
int MKBKeyBagCreateWithData(CFDataRef keybagBlob, MKBKeyBagHandleRef* newHandle) { | ||
printf("STUB %s\n", __PRETTY_FUNCTION__); | ||
return -1; | ||
}; | ||
|
||
int MKBKeyBagGetAKSHandle(MKBKeyBagHandleRef keybag, int32_t* handle) { | ||
printf("STUB %s\n", __PRETTY_FUNCTION__); | ||
return -1; | ||
}; | ||
|
||
int MKBKeyBagUnlock(MKBKeyBagHandleRef keybag, CFDataRef passcode) { | ||
printf("STUB %s\n", __PRETTY_FUNCTION__); | ||
return -1; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,6 @@ | |
|
||
@interface CKContainer : NSObject | ||
|
||
+ (instancetype)containerWithIdentifier: (NSString*)identifier; | ||
|
||
@end |
28 changes: 28 additions & 0 deletions
28
src/frameworks/CloudKit/include/CloudKit/CKContainer_Private.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* This file is part of Darling. | ||
* | ||
* Copyright (C) 2023 Darling Developers | ||
* | ||
* Darling is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Darling is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Darling. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#import <CloudKit/CKContainer.h> | ||
|
||
typedef void (^CKContainerDeviceIDCompletionHandler)(NSString* deviceID, NSError* error); | ||
|
||
@interface CKContainer (Private) | ||
|
||
- (void)fetchCurrentDeviceIDWithCompletionHandler: (CKContainerDeviceIDCompletionHandler)completionHandler; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/private-frameworks/AuthKit/include/AuthKit/AKDeviceListRequestContext.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
@interface AKDeviceListRequestContext : NSObject | ||
|
||
@property(copy) NSArray<NSString*>* services; | ||
@property(copy) NSString* altDSID; | ||
|
||
@end |
8 changes: 8 additions & 0 deletions
8
src/private-frameworks/AuthKit/include/AuthKit/AKRemoteDevice.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
@interface AKRemoteDevice : NSObject | ||
|
||
@property(readonly) NSString* machineId; | ||
@property(readonly) NSString* serialNumber; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/private-frameworks/AuthKit/include/AuthKit/AuthKit_Private.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#import <AuthKit/AuthKit.h> |
13 changes: 13 additions & 0 deletions
13
src/private-frameworks/AuthKit/src/AKDeviceListRequestContext.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#import <AuthKit/AKDeviceListRequestContext.h> | ||
|
||
@implementation AKDeviceListRequestContext | ||
|
||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { | ||
return [NSMethodSignature signatureWithObjCTypes: "v@:"]; | ||
} | ||
|
||
- (void)forwardInvocation:(NSInvocation *)anInvocation { | ||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.