private String[] checkKexes(String kexes){ if(kexes==null || kexes.length()==0) return null; if(JSch.getLogger().isEnabled(Logger.INFO)){ JSch.getLogger().log(Logger.INFO, "CheckKexes: "+kexes); } java.util.Vector result=new java.util.Vector(); String[] _kexes=Util.split(kexes, ","); for(int i=0; i<_kexes.length; i++){ if(!checkKex(this, getConfig(_kexes[i]))){ result.addElement(_kexes[i]); } } if(result.size()==0) return null; String[] foo=new String[result.size()]; System.arraycopy(result.toArray(), 0, foo, 0, result.size()); if(JSch.getLogger().isEnabled(Logger.INFO)){ for(int i=0; i<foo.length; i++){ JSch.getLogger().log(Logger.INFO, foo[i]+" is not available."); } } return foo; }
private String[] checkCiphers(String ciphers){ if(ciphers==null || ciphers.length()==0) return null; if(JSch.getLogger().isEnabled(Logger.INFO)){ JSch.getLogger().log(Logger.INFO, "CheckCiphers: "+ciphers); } java.util.Vector result=new java.util.Vector(); String[] _ciphers=Util.split(ciphers, ","); for(int i=0; i<_ciphers.length; i++){ if(!checkCipher(getConfig(_ciphers[i]))){ result.addElement(_ciphers[i]); } } if(result.size()==0) return null; String[] foo=new String[result.size()]; System.arraycopy(result.toArray(), 0, foo, 0, result.size()); if(JSch.getLogger().isEnabled(Logger.INFO)){ for(int i=0; i<foo.length; i++){ JSch.getLogger().log(Logger.INFO, foo[i]+" is not available."); } } return foo; }
return null; if(JSch.getLogger().isEnabled(Logger.INFO)){ JSch.getLogger().log(Logger.INFO, "CheckSignatures: "+sigs); String[] foo=new String[result.size()]; System.arraycopy(result.toArray(), 0, foo, 0, result.size()); if(JSch.getLogger().isEnabled(Logger.INFO)){ for(int i=0; i<foo.length; i++){ JSch.getLogger().log(Logger.INFO, foo[i]+" is not available.");
private String[] checkKexes(String kexes){ if(kexes==null || kexes.length()==0) return null; if(JSch.getLogger().isEnabled(Logger.INFO)){ JSch.getLogger().log(Logger.INFO, "CheckKexes: "+kexes); } java.util.Vector result=new java.util.Vector(); String[] _kexes=Util.split(kexes, ","); for(int i=0; i<_kexes.length; i++){ if(!checkKex(this, getConfig(_kexes[i]))){ result.addElement(_kexes[i]); } } if(result.size()==0) return null; String[] foo=new String[result.size()]; System.arraycopy(result.toArray(), 0, foo, 0, result.size()); if(JSch.getLogger().isEnabled(Logger.INFO)){ for(int i=0; i<foo.length; i++){ JSch.getLogger().log(Logger.INFO, foo[i]+" is not available."); } } return foo; }
private String[] checkKexes(String kexes){ if(kexes==null || kexes.length()==0) return null; if(JSch.getLogger().isEnabled(Logger.INFO)){ JSch.getLogger().log(Logger.INFO, "CheckKexes: "+kexes); } java.util.Vector result=new java.util.Vector(); String[] _kexes=Util.split(kexes, ","); for(int i=0; i<_kexes.length; i++){ if(!checkKex(this, getConfig(_kexes[i]))){ result.addElement(_kexes[i]); } } if(result.size()==0) return null; String[] foo=new String[result.size()]; System.arraycopy(result.toArray(), 0, foo, 0, result.size()); if(JSch.getLogger().isEnabled(Logger.INFO)){ for(int i=0; i<foo.length; i++){ JSch.getLogger().log(Logger.INFO, foo[i]+" is not available."); } } return foo; }
return null; if(JSch.getLogger().isEnabled(Logger.INFO)){ JSch.getLogger().log(Logger.INFO, "CheckSignatures: "+sigs); String[] foo=new String[result.size()]; System.arraycopy(result.toArray(), 0, foo, 0, result.size()); if(JSch.getLogger().isEnabled(Logger.INFO)){ for(int i=0; i<foo.length; i++){ JSch.getLogger().log(Logger.INFO, foo[i]+" is not available.");
return null; if(JSch.getLogger().isEnabled(Logger.INFO)){ JSch.getLogger().log(Logger.INFO, "CheckSignatures: "+sigs); String[] foo=new String[result.size()]; System.arraycopy(result.toArray(), 0, foo, 0, result.size()); if(JSch.getLogger().isEnabled(Logger.INFO)){ for(int i=0; i<foo.length; i++){ JSch.getLogger().log(Logger.INFO, foo[i]+" is not available.");
return null; if(JSch.getLogger().isEnabled(Logger.INFO)){ JSch.getLogger().log(Logger.INFO, "CheckCiphers: "+ciphers); System.arraycopy(result.toArray(), 0, foo, 0, result.size()); if(JSch.getLogger().isEnabled(Logger.INFO)){ for(int i=0; i<foo.length; i++){ JSch.getLogger().log(Logger.INFO, foo[i]+" is not available.");
return null; if(JSch.getLogger().isEnabled(Logger.INFO)){ JSch.getLogger().log(Logger.INFO, "CheckCiphers: "+ciphers); System.arraycopy(result.toArray(), 0, foo, 0, result.size()); if(JSch.getLogger().isEnabled(Logger.INFO)){ for(int i=0; i<foo.length; i++){ JSch.getLogger().log(Logger.INFO, foo[i]+" is not available.");
return null; if(JSch.getLogger().isEnabled(Logger.INFO)){ JSch.getLogger().log(Logger.INFO, "CheckCiphers: "+ciphers); System.arraycopy(result.toArray(), 0, foo, 0, result.size()); if(JSch.getLogger().isEnabled(Logger.INFO)){ for(int i=0; i<foo.length; i++){ JSch.getLogger().log(Logger.INFO, foo[i]+" is not available.");
public void run(){ thread=this; try{ while(thread!=null){ Socket socket=ss.accept(); socket.setTcpNoDelay(true); InputStream in=socket.getInputStream(); OutputStream out=socket.getOutputStream(); ChannelDirectTCPIP channel=new ChannelDirectTCPIP(); channel.init(); channel.setInputStream(in); channel.setOutputStream(out); session.addChannel(channel); ((ChannelDirectTCPIP)channel).setHost(host); ((ChannelDirectTCPIP)channel).setPort(rport); ((ChannelDirectTCPIP)channel).setOrgIPAddress(socket.getInetAddress().getHostAddress()); ((ChannelDirectTCPIP)channel).setOrgPort(socket.getPort()); channel.connect(connectTimeout); if(channel.exitstatus!=-1){ } } } catch(Exception e){ if(session.jsch.getLogger().isEnabled(Logger.WARN)) { session.jsch.getLogger().log(Logger.WARN, e.toString()); } //System.err.println("! "+e); } delete(); }