aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSSHTunnel.m
Commit message (Collapse)AuthorAgeFilesLines
* Review usage of notifications, afterDelay: and waitUntilDone:NO calls:rowanbeentje2010-04-121-1/+1
| | | | | | | - Add more calls to deregister watchers to fix crashes to closing threads or objects - Fix a couple of memory leaks - Alter a few calls to be performed on main thread (afterDelay: operates on the thread is is called on) - this fixed database reloading after import and field/index deletion error sheets
* - Improve on r2050, running reconnections after a proxy disconnect on a new ↵rowanbeentje2010-04-041-0/+2
| | | | thread to allow the UI to update and handle events on 10.6. Also clean up the logic in MCPConnection waiting for a proxy discoonect to handle more cases and simplify code.
* - Improve SPSSHTunnel question/password dialogs to no longer eat 100% CPU ↵rowanbeentje2010-03-311-27/+32
| | | | | | | | by switching from NSCondition blocking to NSLock blocking - Improve behaviour of SSH tunnels with no password in keychain - prompt appropriately - Set MXPConnection to check the proxy state when attempting to reconnect a dropped connection, extending the timer when an auth UI is up. This prevents a multiple-dialogs misbehaviour (or sometimes deadlock), addressing the last part of http://log.sequelpro.com/view/86 .
* - Improve MCPConnection behaviour with respect to run loops and proxies, ↵rowanbeentje2010-03-271-4/+2
| | | | | | | improving both proxy disconnection and reconnection after dropped connections - Slightly tweak SPSSHTunnel to improve proxy behaviour
* General tidy up, with a focus on consolidating more constants in ↵stuconnolly2010-03-241-3/+3
| | | | SPConstants.h/m.
* * fixed typo that prevented the document window from closing when choosing ↵jakob2010-01-281-2/+2
| | | | | | 'disconnect' in the connection error dialog * improved some comments
* - removed two occurances of runModalForWindow: when asking questions for the ↵jakob2010-01-281-56/+83
| | | | SSH-helper (see #357)
* - Fix SSH threads (and connections) which were never cleaned up or closed, ↵rowanbeentje2010-01-271-1/+2
| | | | | | | probably as a result of r1709 - Improve SSH and object cleanup, especially for cases where the connection drops, to ensure the connection proxy is cleaned up and all memory released
* - Upgrade Sequel Pro to be compiled as a 3-way PPC/i386/x86_64 binary for ↵rowanbeentje2010-01-091-21/+21
| | | | | | | release builds, including a large number of 64bit compatibility upgrades and tweaks - Upgrade RegexKitLite to 3.3
* - Fix hashing of auth strings - fixes recent (and 64-bit) second use of SSH ↵rowanbeentje2010-01-031-2/+2
| | | | tunnels hanging
* - Rather than overriding SSH_AUTH_SOCK, allow the OS (or any user-supplied ↵rowanbeentje2009-11-211-2/+0
| | | | agent) to handle public/private key authentication. This addresses Issue #407.
* Before terminating the SSH tunnel task check that it's actually running to ↵stuconnolly2009-10-291-2/+7
| | | | accommodate tunnels that suddenly disappear.
* Replace the use of hard coded preference keys with constants to prevent ↵stuconnolly2009-10-171-4/+6
| | | | issues such as the one fixed in revision 1419. All future preference usage should be done so using these constants.
* - Add ControlMaster compatibility to SSH tunnels - credit to Igor Sutton. ↵rowanbeentje2009-09-301-0/+1
| | | | This addresses Issue #396
* If the SSH tunnel is unable to bind to the local port because there is ↵stuconnolly2009-08-281-1/+1
| | | | already an existing tunnel, give the user the option of using a standard connection to localhost on the port that is in use in order to use the existing tunnel. Fixes issue #371.
* When SSH is unable to bind to the local port because its already use, ↵stuconnolly2009-08-201-4/+12
| | | | display an appropriate error message including a possible cause of the error.
* - Fix SSH tunnel support for private/public keys following framework ↵rowanbeentje2009-08-081-3/+9
| | | | upgrade changes
* Rename Keychain class.stuconnolly2009-08-071-3/+3
|
* Source tidy up and missing SVN properties.stuconnolly2009-08-071-0/+2
|
* - Rename "TunnelPassphraseRequester" to "SequelProTunnelAssistant" for ↵rowanbeentje2009-07-211-2/+2
| | | | | | | clarity (sorry nightly testers) - Improve assistant copy from being in a script to resources copy phase
* Merge framework integration branch back to trunk. Summary of changes:stuconnolly2009-07-211-20/+20
| | | | | | | | | | | | | | | - Includes all custom code from subclasses CMMCPConnection and CMMCPResult, meaning they have subsequently been removed from the project. - All previous Sequel Pro specific code in the above subclasses has been removed in favour of the delegate (currently set to TableDocumet) informing the framework of such information. - All references to CMMCPConnection and CMMCPResult have subsequently been changed to MCPConnection and MCPResult. - Framework includes MySQL 5.1.36 client libraries and source headers. - Framework is now built as a 4-way (32/64 bit, i386/PPC arch) binary. - All import references to <MCPKit_bundled/MCPKit_bundled.h> have been changed to <MCPKit/MCPKit.h>. - New script 'build-mysql-client.sh' can be used to build the MySQL client libraries from the MySQL source. See the script's header for a list of available options or run it with no arguments to display it's usage. Note that there are still a few changes to be made to the framework with regard to removing Sequel Pro specific calls to the delegate. These however can be made later on as they have no effect on functionality and are merely design changes. Also, note that any future development done on the framework should be made to be as 'generic' as possible, with no Sequel Pro specific references. This should allow the framework to be integrated into another project without the need for SP specific code.
* - Make the DBView window the document window. This allows the document to ↵rowanbeentje2009-07-151-0/+2
| | | | | | | | | | be closed when the window is closed, freeing the document's memory - Update a number of dealloc methods to include more retained memory, and to avoid releasing non-retained memory - Remove notification observers and delegates where appropriate to avoid issues after document closing - Fix a couple of memory leaks - Support window cascading for all windows past the first, using the first window as the autosave window
* - Allow connections via SSH tunnels to reattempt using the specified host ↵rowanbeentje2009-06-211-8/+54
| | | | | | | | | if 127.0.0.1 was retried automatically. - Store the SSH debug logs and allow viewing on connection error - Clean up CMMCPConnections on connection failure - Fix connection keepalive instantiation
* Further SSH tunnel improvements:rowanbeentje2009-06-061-8/+50
| | | | | | | | - Redesigned SSH key authentication dialog - Added ability to add SSH key passphrases to keychain (sharing details with system SSH) - SSH tunnels with keys which fail are now correctly restarted, interacting with the GUI as necessary - GUI interaction now performed on the main thread for increased stability
* - Make memory management for SSH tunnels explicit to improve thread ↵rowanbeentje2009-06-051-7/+21
| | | | | | | interaction and reduce crashes - Add Command-. shortcuts for cancel buttons on SSH dialogs
* Further SSH tunnel improvements:rowanbeentje2009-06-051-6/+55
| | | | | | - SSH Public/private keys are now supported, even if they are password-protected. The user and password fields can be left blank where appropriate. - SSH yes/no queries (ie host key mismatch) and password requests (eg key passphrases) dialogs now automatically resize to match the content from the SSH process.
* Added print accesory view with option to Print Backgroundsbamse162009-06-041-0/+5
|
* - SSH Tunnel - PubKey Authenticationavenjamin2009-06-041-0/+1
|
* Further SSH tunnel improvements, password handling improvements, and minor ↵rowanbeentje2009-06-041-15/+72
| | | | | | | | | | | | | bugfixes: - SSH tunnels can now correctly show dialogs for ssh queries, eg host key mismatches - SSH tunnels are now correctly closed by the document for connection failures - Keychain password item name and account generation has been moved to within the keychain class, to centralise generation for consistency - Keychain item names and accounts now correctly deal with nil values, allowing more keychain items to be read - "Add to favorites" button and menu item now correctly store passwords and SSH tunnel settings - Duplicating favorites in preferences now selects the newly created favorite instead of deselecting everything - Fixes an occasional crasher sometimes encountered in keychain usage
* - Fix SSH tunnels on PPCrowanbeentje2009-06-031-1/+9
| | | | | | - Improve general SSH tunnel stability and automatic reconnection on failure - Improve handling of failed SSH tunnel passwords
* - Fix SSH tunnel treatment of temporary (non-Keychain) passwords by ↵rowanbeentje2009-05-291-1/+1
| | | | correctly comparing hashes and not hash pointers (!)
* Add support for SSH tunnels, improve password security, and tweaks:rowanbeentje2009-05-281-0/+359
- Implementation of a new SPSSHTunnel class, designed to closely integrate SSH tunnels within Sequel Pro. - Integration of SPSSHTunnel - new connection methods using callbacks, and CMMCPConnection integration - Keychain class upgrade to include the new SPSSHTunnel keychain password helper on the trusted access list for new passwords - Keychain passwords are now held in memory/UI for only as long as necessary, increasing password security - Updated interface to enable/add SSH tunnel functionality - Remove old SSHTunnel class - Addition of new target for the SSH Tunnel password assistant, addition as a dependency of the main target, and addition to build script to copy into resources directory - Fix a keychain password deletion crash