Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37515876
en ru br
ALT Linux repos
S:217.21-alt1_3jpp11

Group :: Development/Java
RPM: trilead-ssh2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: trilead-ssh2-build213-svnkit-1.3-patch.patch
Download


--- trilead-ssh2-build213/trilead-ssh2-build213.pom	2009-07-14 15:01:42.000000000 -0400
+++ trilead-ssh2-build213/trilead-ssh2-build213-svnkit-1.3-patch.pom	2009-07-08 18:36:24.000000000 -0400
@@ -3,7 +3,7 @@
   <groupId>com.trilead</groupId>
   <artifactId>trilead-ssh2</artifactId>
   <packaging>jar</packaging>
-  <version>build213</version>
+  <version>build213-svnkit-1.3-patch</version>
   <name>Trilead SSH2</name>
   <description>A pure Java implementation of the SSH-2 protocol, a successor to Ganymed</description>
   <url>http://www.trilead.com/Products/Trilead_SSH_for_Java/</url>
@@ -15,4 +15,4 @@
   <distributionManagement>
     <downloadUrl>http://www.trilead.com/Download/Trilead_SSH_for_Java/</downloadUrl>
   </distributionManagement>
-</project>
+</project>
\ No newline at end of file
--- trilead-ssh2-build213/src/com/trilead/ssh2/Connection.java	2008-04-01 08:48:37.000000000 -0400
+++ trilead-ssh2-build213-svnkit-1.3-patch/src/com/trilead/ssh2/Connection.java	2008-08-08 19:00:22.000000000 -0400
@@ -17,6 +17,7 @@
 import com.trilead.ssh2.crypto.digest.MAC;
 import com.trilead.ssh2.log.Logger;
 import com.trilead.ssh2.packets.PacketIgnore;
+import com.trilead.ssh2.transport.ClientServerHello;
 import com.trilead.ssh2.transport.KexManager;
 import com.trilead.ssh2.transport.TransportManager;
 import com.trilead.ssh2.util.TimeoutService;
@@ -960,6 +961,14 @@
 					"Cannot get details of connection, you need to establish a connection first.");
 		return tm.getConnectionInfo(1);
 	}
+	
+	public synchronized ClientServerHello getVersionInfo() throws IOException {
+		if (tm == null)
+			throw new IllegalStateException(
+					"Cannot get details of connection, you need to establish a connection first.");
+		return tm.getVersionInfo();
+	}
+
 
 	/**
 	 * After a successful connect, one has to authenticate oneself. This method
diff -ur trilead-ssh2-build213/src/com/trilead/ssh2/transport/TransportManager.java trilead-ssh2-build213-svnkit-1.3-patch/src/com/trilead/ssh2/transport/TransportManager.java
--- trilead-ssh2-build213/src/com/trilead/ssh2/transport/TransportManager.java	2008-04-01 08:48:37.000000000 -0400
+++ trilead-ssh2-build213-svnkit-1.3-patch/src/com/trilead/ssh2/transport/TransportManager.java	2008-08-08 18:54:10.000000000 -0400
@@ -142,6 +142,7 @@
 
 	Vector connectionMonitors = new Vector();
 	boolean monitorsWereInformed = false;
+	private ClientServerHello versions;
 
 	/**
 	 * There were reports that there are JDKs which use
@@ -229,6 +230,10 @@
 	{
 		return km.getOrWaitForConnectionInfo(kexNumber);
 	}
+	
+	public ClientServerHello getVersionInfo() {
+		return versions;
+	}
 
 	public Throwable getReasonClosedCause()
 	{
@@ -454,6 +459,7 @@
 		 */
 
 		ClientServerHello csh = new ClientServerHello(sock.getInputStream(), sock.getOutputStream());
+		versions = csh;
 
 		tc = new TransportConnection(sock.getInputStream(), sock.getOutputStream(), rnd);
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin