Checks and extra logging for login issues
This commit is contained in:
parent
c52c6c6248
commit
dc4e4689e0
@ -22,7 +22,7 @@
|
||||
<key>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</key>
|
||||
<string>..</string>
|
||||
<key>D74FB800F048CB516BB4BC70047F7CC676D291B9</key>
|
||||
<string>..Pods/</string>
|
||||
<string>..Pods</string>
|
||||
</dict>
|
||||
<key>IDESourceControlProjectURL</key>
|
||||
<string>github.com:WhisperSystems/Signal-iOS.git</string>
|
||||
@ -36,17 +36,17 @@
|
||||
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
|
||||
<string>public.vcs.git</string>
|
||||
<key>IDESourceControlWCCIdentifierKey</key>
|
||||
<string>D74FB800F048CB516BB4BC70047F7CC676D291B9</string>
|
||||
<string>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</string>
|
||||
<key>IDESourceControlWCCName</key>
|
||||
<string>Pods</string>
|
||||
<string>Signal-iOS</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
|
||||
<string>public.vcs.git</string>
|
||||
<key>IDESourceControlWCCIdentifierKey</key>
|
||||
<string>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</string>
|
||||
<string>D74FB800F048CB516BB4BC70047F7CC676D291B9</string>
|
||||
<key>IDESourceControlWCCName</key>
|
||||
<string>Signal-iOS</string>
|
||||
<string>Signal-iOSPods</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
|
||||
NSError *error;
|
||||
|
||||
NSDictionary *attrs = @{NSFileProtectionKey: NSFileProtectionComplete};
|
||||
NSDictionary *attrs = @{NSFileProtectionKey: NSFileProtectionCompleteUntilFirstUserAuthentication};
|
||||
[[NSFileManager defaultManager] setAttributes:attrs ofItemAtPath:preferencesPath error:&error];
|
||||
|
||||
[pathsToExclude addObject:[[preferencesPath stringByAppendingString:[[NSBundle mainBundle] bundleIdentifier]] stringByAppendingString:@".plist"]];
|
||||
@ -74,7 +74,7 @@
|
||||
NSString *logPath = [NSHomeDirectory() stringByAppendingString:@"/Library/Caches/Logs/"];
|
||||
NSArray *logsFiles = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:logPath error:&error];
|
||||
|
||||
attrs = @{NSFileProtectionKey: NSFileProtectionComplete};
|
||||
attrs = @{NSFileProtectionKey: NSFileProtectionCompleteUntilFirstUserAuthentication};
|
||||
[[NSFileManager defaultManager] setAttributes:attrs ofItemAtPath:logPath error:&error];
|
||||
|
||||
for (NSUInteger i = 0; i < [logsFiles count]; i++) {
|
||||
@ -173,6 +173,11 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (!call) {
|
||||
DDLogError(@"Decryption of session descriptor failed");
|
||||
return;
|
||||
}
|
||||
|
||||
[[Environment phoneManager] incomingCallWithSession:call];
|
||||
}
|
||||
|
||||
|
||||
@ -99,6 +99,7 @@
|
||||
require(data != nil);
|
||||
checkOperation([data length] >= VERSION_SIZE + IV_SIZE);
|
||||
NSData* cipherKey = [SGNKeychainUtil signalingCipherKey];
|
||||
require(cipherKey != nil);
|
||||
NSData* iv = [data subdataWithRange:NSMakeRange(VERSION_SIZE, IV_SIZE)];
|
||||
NSData* cipherText = [data skip:VERSION_SIZE+IV_SIZE];
|
||||
return [cipherText decryptWithAesInCipherBlockChainingModeWithPkcs7PaddingWithKey:cipherKey andIv:iv];
|
||||
|
||||
@ -48,11 +48,6 @@ static NSString *const FOOTER_TABLE_CELL_IDENTIFIER = @"InboxFeedFooterCell";
|
||||
[self observeKeyboardNotifications];
|
||||
[self setupLabelLocalizationAndStyles];
|
||||
|
||||
if (![Environment isRegistered]) {
|
||||
[Environment resetAppData];
|
||||
RegisterViewController *registerViewController = [RegisterViewController registerViewController];
|
||||
[self presentViewController:registerViewController animated:NO completion:nil];
|
||||
}
|
||||
_inboxFeedTableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
|
||||
}
|
||||
|
||||
@ -67,6 +62,12 @@ static NSString *const FOOTER_TABLE_CELL_IDENTIFIER = @"InboxFeedFooterCell";
|
||||
[self.navigationController setNavigationBarHidden:YES animated:NO];
|
||||
[_searchBarTitleView updateAutoCorrectionType];
|
||||
[_inboxFeedTableView reloadData];
|
||||
|
||||
if (![Environment isRegistered]) {
|
||||
[Environment resetAppData];
|
||||
RegisterViewController *registerViewController = [RegisterViewController registerViewController];
|
||||
[self presentViewController:registerViewController animated:NO completion:nil];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user