aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSSHTunnel.m
Commit message (Collapse)AuthorAgeFilesLines
* - Fix SSH tunnels for connections with non-Latin characters in their namerowanbeentje2011-01-041-2/+2
| | | | | | - If SSH tunnel password lookups fail, fall back to asking the user for the password - Don't reset keychain IDs across documents if not set; this fixes problems re-saving .spfs or duplicating chains of tabs
* - Split out all of SPExportController's delegate methods to their own category.stuconnolly2010-10-241-1/+0
| | | | | | | | - Prepare for the implementation of PDF and HTML export by hiding the export options box for export types that don't need it. - Fix some spacing issues on the export dialog. - Create a new SPCategoryAdditions header that is included in the apps precompiled header, making all additions available to all classes. - Update strings files.
* Considering nearly every class uses constants, import it via the prefix header.stuconnolly2010-10-191-1/+0
|
* - Update SSH connections to pick up custom ports configured in SSH config ↵rowanbeentje2010-10-061-3/+5
| | | | | | | | files; thanks to Stefan Schüßer for this patch. - Tweak SSH Master Mode to use the "ControlMaster auto" setting instead of -M - Update localizable strings
* - Add support for SSH identity files (public keys) in custom locationsrowanbeentje2010-09-081-0/+19
| | | | | | - Update localisable strings - Fix initial window position
* - Make a few more strings localizablerowanbeentje2010-08-011-1/+1
|
* Improve handling of network drops, including a new automatic reconnection ↵rowanbeentje2010-07-131-8/+7
| | | | | | | | | | | | | attempt, as well as improved handling of networks not present. This addresses Issue #657. In MCPKit: - Disable MySQL automatic reconnection, and add our own reconnection code for greater consistency - If no network is available, delay reconnects by a short period to allow the network to come back up - Improved handling of proxy disconnects In SPSSHTunnel: - Improved handling of SSH tunnel disconnects, improving automatic reconnection via MCPKit and fixing potential memory/logic tramping. Also remove the "Retry" button from the Disconnected dialog, leaving only the choices "Reconnect" or "Disconnect".
* Initial implementation of tabs:rowanbeentje2010-05-231-0/+11
| | | | | | | | - Addition of PSMTabBar framework - Rework away from a document-based TableDocument - Support tabs throughout the application - Add menu items for creating tabs, and add support for dragging tabs to different windows
* Rework alert sheets:rowanbeentje2010-05-091-0/+1
| | | | | | | - Change MCPConnection.m to no longer use a reference to tableWindow to attach sheets - instead use a delate error display method if available - Rework TableSource and TableContent sheetDidEnd methods into per-task methods rather than overloading contextInfo - Rework SPAlertSheets to perform actions on the main thread, with the loss of (unused) support for a didDismissSelector. This addresses a number of crashes logged by the crash reporter
* - Fix CFRunLoopWakeUp crashes seen on 10.5.8 with SSH connections by ↵rowanbeentje2010-04-281-0/+4
| | | | running the run loop after disconnection to flush calls
* - Add locking for SSH debug message processing - this addresses ↵rowanbeentje2010-04-151-2/+12
| | | | http://spbug.com/l/117
* 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