changeset 295:deb5fb087b6f ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 20:48:40 -0700
parents c41a399da303
children 8c55d7714d03
files src/ch/ethz/ssh2/DynamicPortForwarder.java src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java
diffstat 2 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/DynamicPortForwarder.java	Fri Jul 18 20:44:46 2014 -0700
+++ b/src/ch/ethz/ssh2/DynamicPortForwarder.java	Fri Jul 18 20:48:40 2014 -0700
@@ -21,7 +21,7 @@
 import java.net.InetSocketAddress;
 
 import ch.ethz.ssh2.channel.ChannelManager;
-import ch.ethx.ssh2.channel.DynamicAcceptThread;
+import ch.ethz.ssh2.channel.DynamicAcceptThread;
 
 /**
  * A <code>DynamicPortForwarder</code> forwards TCP/IP connections to a local
--- a/src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java	Fri Jul 18 20:44:46 2014 -0700
+++ b/src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java	Fri Jul 18 20:48:40 2014 -0700
@@ -99,8 +99,7 @@
         this.c = c;
         this.authAgent = authAgent;
 
-        if (log.isEnabled())
-            log.log(20, "AuthAgentForwardThread started");
+        log.debug("AuthAgentForwardThread started");
     }
 
     @Override
@@ -190,7 +189,7 @@
             c.cm.closeChannel(c, "EOF on both streams reached.", true);
         }
         catch (IOException e) {
-            log.log(50, "IOException in agent forwarder: " + e.getMessage());
+            log.debug("IOException in agent forwarder: " + e.getMessage());
 
             try {
                 is.close();
@@ -306,7 +305,7 @@
                 comment = tr.readString();
 
                 if (!"nistp256".equals(curveName)) {
-                    log.log(2, "Invalid curve name for ecdsa-sha2-nistp256: " + curveName);
+                    log.debug("Invalid curve name for ecdsa-sha2-nistp256: " + curveName);
                     os.write(SSH_AGENT_FAILURE);
                     return;
                 }
@@ -324,7 +323,7 @@
                 privSpec = new ECPrivateKeySpec(exponent, nistp256);
             }
             else {
-                log.log(2, "Unknown key type: " + type);
+                log.debug("Unknown key type: " + type);
                 os.write(SSH_AGENT_FAILURE);
                 return;
             }