implemented crypto and started pairing

This commit is contained in:
Diego Waxemberg
2014-10-18 21:13:48 -04:00
parent bd91d74de8
commit 9226a05ad8
6 changed files with 142 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
#import "ConnectionHandler.h"
#import "Computer.h"
#import "CryptoManager.h"
#import "HttpManager.h"
@implementation MainFrameViewController
NSString* hostAddr;
@@ -87,7 +88,10 @@ MDNSManager* mDNSManager;
mDNSManager = [[MDNSManager alloc] initWithCallback:self];
[mDNSManager searchForHosts];
[[[CryptoManager alloc] init] generateKeyPairUsingSSl];
CryptoManager* cryptMan = [[CryptoManager alloc] init];
[cryptMan getUniqueID];
HttpManager* hMan = [[HttpManager alloc] init];
[hMan saltPIN:[hMan generatePIN]];
}
- (void)updateHosts:(NSArray *)hosts {