]> git.saurik.com Git - apple/security.git/blob - KeychainCircle/Tests/FakeSOSControl.h
Security-59306.11.20.tar.gz
[apple/security.git] / KeychainCircle / Tests / FakeSOSControl.h
1 #ifndef FakeSOSControl_h
2 #define FakeSOSControl_h
3
4 #import <Foundation/Foundation.h>
5 #import <Security/Security.h>
6 #import <Security/SecKeyPriv.h>
7 #import <Security/SecItemPriv.h>
8 #import "keychain/SecureObjectSync/SOSAccount.h"
9 #include "keychain/SecureObjectSync/SOSAccountPriv.h"
10 #include "keychain/SecureObjectSync/SOSCircle.h"
11 #import <KeychainCircle/KeychainCircle.h>
12 #import "utilities/SecCFWrappers.h"
13
14 NS_ASSUME_NONNULL_BEGIN
15
16 @interface FCPairingFakeSOSControl : NSObject <SOSControlProtocol>
17 @property (assign) SecKeyRef accountPrivateKey;
18 @property (assign) SecKeyRef accountPublicKey;
19 @property (assign) SecKeyRef deviceKey;
20 @property (assign) SecKeyRef octagonSigningKey;
21 @property (assign) SecKeyRef octagonEncryptionKey;
22 @property (assign) SOSCircleRef circle;
23 @property (assign) SOSFullPeerInfoRef fullPeerInfo;
24 @property (assign) bool application;
25 - (instancetype)initWithRandomAccountKey:(bool)randomAccountKey circle:(SOSCircleRef)circle;
26 - (void)dealloc;
27 - (SOSPeerInfoRef)peerInfo;
28 - (void)signApplicationIfNeeded;
29 @end
30
31 @interface FakeNSXPCConnection : NSObject
32 - (instancetype) initWithControl:(id<SOSControlProtocol>)control;
33 - (id)remoteObjectProxyWithErrorHandler:(void(^)(NSError * _Nonnull error))failureHandler;
34 @end
35
36 @interface FakeNSXPCConnection ()
37 @property id<SOSControlProtocol> control;
38 @end
39
40 NS_ASSUME_NONNULL_END
41 #endif /* FakeSOSControl_h */
42
43