Ensure we can't enter the app grid without having a pinned cert

This commit is contained in:
Cameron Gutman 2018-12-28 01:32:53 -08:00
parent 85820bf812
commit d40a29df71

View File

@ -29,10 +29,12 @@
self.mac = host.mac; self.mac = host.mac;
self.name = host.name; self.name = host.name;
self.uuid = host.uuid; self.uuid = host.uuid;
self.pairState = [host.pairState intValue];
self.serverCodecModeSupport = host.serverCodecModeSupport; self.serverCodecModeSupport = host.serverCodecModeSupport;
self.serverCert = host.serverCert; self.serverCert = host.serverCert;
// Ensure we don't use a stale cached pair state if we haven't pinned the cert yet
self.pairState = host.serverCert ? [host.pairState intValue] : PairStateUnpaired;
NSMutableSet *appList = [[NSMutableSet alloc] init]; NSMutableSet *appList = [[NSMutableSet alloc] init];
for (App* app in host.appList) { for (App* app in host.appList) {