Changeset 82
- Timestamp:
- 12/27/05 16:40:18 (3 years ago)
- Files:
-
- trunk/Libs/SSHAgent.h (modified) (1 diff)
- trunk/Libs/SSHAgent.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Libs/SSHAgent.h
r3 r82 11 11 NSArray *keysOnAgent; 12 12 13 BOOL openPanel;14 15 13 /* Locks */ 16 14 NSLock *socketPathLock; 17 15 NSLock *agentSocketPathLock; 18 16 NSLock *keysOnAgentLock; 19 NSLock *openPanelLock;20 17 NSLock *thePidLock; 21 18 } trunk/Libs/SSHAgent.m
r81 r82 55 55 agentSocketPathLock = [[NSLock alloc] init]; 56 56 keysOnAgentLock = [[NSLock alloc] init]; 57 openPanelLock = [[NSLock alloc] init];58 57 thePidLock = [[NSLock alloc] init]; 59 58 … … 68 67 [agentSocketPathLock dealloc]; 69 68 [keysOnAgentLock dealloc]; 70 [openPanelLock dealloc];71 69 [thePidLock dealloc]; 72 70 … … 639 637 } 640 638 641 if(([[self keysOnAgent] count] < 1) && ([[NSUserDefaults standardUserDefaults] boolForKey:AddKeysOnConnectionString])) 642 { 643 639 if ([[self keysOnAgent] count] < 1 && [[NSUserDefaults standardUserDefaults] boolForKey:AddKeysOnConnectionString]) 640 { 644 641 keychain = [SSHKeychain currentKeychain]; 645 642 646 if((keychain != nil) && ([keychain count] > 0)) 647 { 648 [openPanelLock lock]; 649 openPanel = YES; 650 [openPanelLock unlock]; 651 643 if ([keychain count] > 0) 652 644 [keychain addKeysToAgent]; 653 654 [openPanelLock lock];655 openPanel = NO;656 [openPanelLock unlock];657 }658 645 } 659 646
