5 // Copyright (c) 2018 Apple Inc. All rights reserved.
8 #import <Foundation/Foundation.h>
9 #import <Foundation/NSXPCConnection.h>
10 #import <Security/Security.h>
11 #import <Security/SecInternalReleasePriv.h>
13 #import "OctagonTestHarnessXPCServiceDelegate.h"
15 static OctagonTestHarnessXPCServiceDelegate *delegate = nil;
16 static NSXPCListener *listener =nil;
18 int main(int argc, const char *argv[]) {
21 if (!SecIsInternalRelease()) {
22 NSLog(@"not internal device");
26 delegate = [[OctagonTestHarnessXPCServiceDelegate alloc] init];
27 listener = [[NSXPCListener alloc] initWithMachServiceName:@"com.apple.trieste.OctagonTestHarnessXPCService"];
29 listener.delegate = delegate;
31 NSLog(@"Done listener initialization, resuming");
35 [[NSRunLoop mainRunLoop] run];