You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by gn...@apache.org on 2009/12/07 16:16:04 UTC
svn commit: r887947 -
/mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/SshClient.java
Author: gnodet
Date: Mon Dec 7 15:15:46 2009
New Revision: 887947
URL: http://svn.apache.org/viewvc?rev=887947&view=rev
Log:
Remove the required dependency on bouncycastle for the client
Modified:
mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/SshClient.java
Modified: mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/SshClient.java
URL: http://svn.apache.org/viewvc/mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/SshClient.java?rev=887947&r1=887946&r2=887947&view=diff
==============================================================================
--- mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/SshClient.java (original)
+++ mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/SshClient.java Mon Dec 7 15:15:46 2009
@@ -304,6 +304,8 @@
int ret = ClientSession.WAIT_AUTH;
+ KeyPair[] keys = null;
+ /*
List<String> files = new ArrayList<String>();
File f = new File(System.getProperty("user.home"), ".ssh/id_dsa");
if (f.exists() && f.isFile() && f.canRead()) {
@@ -313,7 +315,6 @@
if (f.exists() && f.isFile() && f.canRead()) {
files.add(f.getAbsolutePath());
}
- KeyPair[] keys = null;
try {
if (files.size() > 0) {
keys = new FileKeyPairProvider(files.toArray(new String[0]), new PasswordFinder() {
@@ -331,6 +332,7 @@
}
} catch (Exception e) {
}
+ */
int nbKey = 0;
while ((ret & ClientSession.WAIT_AUTH) != 0) {
if (keys != null && nbKey < keys.length) {