Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 301388 Details for
Bug 441071
jsch backwards compatibility issue
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to add back old method
jsch-0_1_28_compatibility.patch (text/plain), 1.23 KB, created by
Matt Wringe
on 2008-04-05 19:33:37 UTC
(
hide
)
Description:
patch to add back old method
Filename:
MIME Type:
Creator:
Matt Wringe
Created:
2008-04-05 19:33:37 UTC
Size:
1.23 KB
patch
obsolete
>diff -ru src/com/jcraft/jsch/HostKeyRepository.java.orig src/com/jcraft/jsch/HostKeyRepository.java >--- src/com/jcraft/jsch/HostKeyRepository.java.orig 2006-10-15 13:14:46.000000000 -0400 >+++ src/com/jcraft/jsch/HostKeyRepository.java 2008-04-04 16:44:31.000000000 -0400 >@@ -36,6 +36,7 @@ > > int check(String host, byte[] key); > void add(HostKey hostkey, UserInfo ui); >+ void add(String host, byte[] key, UserInfo ui); > void remove(String host, String type); > void remove(String host, String type, byte[] key); > String getKnownHostsRepositoryID(); >diff -ru src/com/jcraft/jsch/KnownHosts.java.orig src/com/jcraft/jsch/KnownHosts.java >--- src/com/jcraft/jsch/KnownHosts.java.orig 2006-10-15 14:02:31.000000000 -0400 >+++ src/com/jcraft/jsch/KnownHosts.java 2008-04-04 16:46:41.000000000 -0400 >@@ -205,6 +205,20 @@ > //System.err.println("fail!!"); > return result; > } >+ >+ public void add(String host, byte[] key, UserInfo userinfo) >+ { >+ try >+ { >+ HostKey hostkey = new HostKey(host,key); >+ add(hostkey, userinfo); >+ } >+ catch (Exception e) >+ { >+ // this should't get called >+ } >+ } >+ > public void add(HostKey hostkey, UserInfo userinfo){ > int type=hostkey.type; > String host=hostkey.getHost();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 441071
: 301388