diff options
author | yamanaka | 2004-11-02 16:54:30 +0000 |
---|---|---|
committer | yamanaka | 2004-11-02 16:54:30 +0000 |
commit | 762416f2f57d08cd7e384e29be6099b5b043b654 (patch) | |
tree | fdb479dcaa05b999b5a4ad2fd0fa1e337cf57dcc /bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal | |
parent | f8ad917d2ae27f1b8191fd2bae88bd67da77e548 (diff) | |
download | eclipse.platform.team-762416f2f57d08cd7e384e29be6099b5b043b654.tar.gz eclipse.platform.team-762416f2f57d08cd7e384e29be6099b5b043b654.tar.xz eclipse.platform.team-762416f2f57d08cd7e384e29be6099b5b043b654.zip |
* [Bug 76916] Eclipse ignores known_host file on Mac and Windows
This problem has been fixed.
* [Bug 74198] Public Key Authentication with "large" keys fails without
any hints.
At least, NPE should not be thrown.
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal')
-rw-r--r-- | bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/CVSSSH2PreferencePage.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/CVSSSH2PreferencePage.java b/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/CVSSSH2PreferencePage.java index c06724a99..051ba5268 100644 --- a/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/CVSSSH2PreferencePage.java +++ b/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/CVSSSH2PreferencePage.java @@ -806,14 +806,14 @@ public class CVSSSH2PreferencePage extends PreferencePage private Button removeHostKeyButton; class TableLabelProvider extends LabelProvider implements ITableLabelProvider { public String getColumnText(Object element, int columnIndex) { - KnownHosts.HostKey entry = (KnownHosts.HostKey)element; + HostKey entry = (HostKey)element; switch (columnIndex) { case 0: return entry.getHost(); case 1: return entry.getType(); case 2: - return entry.getFingerPrint(); + return entry.getFingerPrint(JSchSession.getJSch()); default: return null; } @@ -930,7 +930,8 @@ public class CVSSSH2PreferencePage extends PreferencePage Dialog.applyDialogFont(parent); JSchSession.loadKnownHosts(); - viewer.setInput(JSchSession.getJSch().getHostKeys()); + HostKeyRepository hkr=JSchSession.getJSch().getHostKeyRepository(); + viewer.setInput(hkr.getHostKey()); handleSelection(); return group; @@ -943,9 +944,10 @@ public class CVSSSH2PreferencePage extends PreferencePage private void removeHostKey(){ JSch jsch=JSchSession.getJSch(); IStructuredSelection selection = (IStructuredSelection)viewer.getSelection(); + HostKeyRepository hkr=JSchSession.getJSch().getHostKeyRepository(); for (Iterator iterator = selection.iterator(); iterator.hasNext();) { - KnownHosts.HostKey hostkey = (KnownHosts.HostKey) iterator.next(); - jsch.removeHostKey(hostkey.getHost(), hostkey.getType()); + HostKey hostkey = (HostKey) iterator.next(); + hkr.remove(hostkey.getHost(), hostkey.getType()); viewer.remove(hostkey); } } |