update JSch to version 0.1.55, closes #1478

This commit is contained in:
Philipp Crocoll
2020-11-30 10:10:13 +01:00
parent b85cb20177
commit 3dcb8ed32b
137 changed files with 365 additions and 189 deletions

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2006-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2006-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2005-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2005-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2013-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2013-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2015-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2015-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2015-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2015-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2015-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2015-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2015-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2015-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2015-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2015-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2004-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2004-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2004-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2004-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:
@@ -93,7 +93,13 @@ class IdentityFile implements Identity{
* @return "ssh-rsa" or "ssh-dss" * @return "ssh-rsa" or "ssh-dss"
*/ */
public String getAlgName(){ public String getAlgName(){
return new String(kpair.getKeyTypeName()); byte[] name = kpair.getKeyTypeName();
try {
return new String(name, "UTF-8");
}
catch (UnsupportedEncodingException e){
return new String(name);
}
} }
/** /**

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2012-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2012-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:
@@ -66,9 +66,9 @@ public class JSch{
config.put("diffie-hellman-group-exchange-sha256", config.put("diffie-hellman-group-exchange-sha256",
"com.jcraft.jsch.DHGEX256"); // available since JDK1.4.2. "com.jcraft.jsch.DHGEX256"); // available since JDK1.4.2.
// On JDK8, 2048bits will be used. // On JDK8, 2048bits will be used.
config.put("ecdsa-sha2-nistp256", "com.jcraft.jsch.jce.SignatureECDSA"); config.put("ecdsa-sha2-nistp256", "com.jcraft.jsch.jce.SignatureECDSA256");
config.put("ecdsa-sha2-nistp384", "com.jcraft.jsch.jce.SignatureECDSA"); config.put("ecdsa-sha2-nistp384", "com.jcraft.jsch.jce.SignatureECDSA384");
config.put("ecdsa-sha2-nistp521", "com.jcraft.jsch.jce.SignatureECDSA"); config.put("ecdsa-sha2-nistp521", "com.jcraft.jsch.jce.SignatureECDSA521");
config.put("ecdh-sha2-nistp256", "com.jcraft.jsch.DHEC256"); config.put("ecdh-sha2-nistp256", "com.jcraft.jsch.DHEC256");
config.put("ecdh-sha2-nistp384", "com.jcraft.jsch.DHEC384"); config.put("ecdh-sha2-nistp384", "com.jcraft.jsch.DHEC384");
@@ -94,7 +94,6 @@ public class JSch{
config.put("md5", "com.jcraft.jsch.jce.MD5"); config.put("md5", "com.jcraft.jsch.jce.MD5");
config.put("signature.dss", "com.jcraft.jsch.jce.SignatureDSA"); config.put("signature.dss", "com.jcraft.jsch.jce.SignatureDSA");
config.put("signature.rsa", "com.jcraft.jsch.jce.SignatureRSA"); config.put("signature.rsa", "com.jcraft.jsch.jce.SignatureRSA");
config.put("signature.ecdsa", "com.jcraft.jsch.jce.SignatureECDSA");
config.put("keypairgen.dsa", "com.jcraft.jsch.jce.KeyPairGenDSA"); config.put("keypairgen.dsa", "com.jcraft.jsch.jce.KeyPairGenDSA");
config.put("keypairgen.rsa", "com.jcraft.jsch.jce.KeyPairGenRSA"); config.put("keypairgen.rsa", "com.jcraft.jsch.jce.KeyPairGenRSA");
config.put("keypairgen.ecdsa", "com.jcraft.jsch.jce.KeyPairGenECDSA"); config.put("keypairgen.ecdsa", "com.jcraft.jsch.jce.KeyPairGenECDSA");

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:
@@ -301,7 +301,7 @@ public abstract class KeyExchange{
SignatureECDSA sig=null; SignatureECDSA sig=null;
try{ try{
Class c=Class.forName(session.getConfig("signature.ecdsa")); Class c=Class.forName(session.getConfig(alg));
sig=(SignatureECDSA)(c.newInstance()); sig=(SignatureECDSA)(c.newInstance());
sig.init(); sig.init();
} }

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:
@@ -599,7 +599,7 @@ public abstract class KeyPair{
} }
else if(_type.equals("ecdsa-sha2-nistp256") || else if(_type.equals("ecdsa-sha2-nistp256") ||
_type.equals("ecdsa-sha2-nistp384") || _type.equals("ecdsa-sha2-nistp384") ||
_type.equals("ecdsa-sha2-nistp512")){ _type.equals("ecdsa-sha2-nistp521")){
kpair=KeyPairECDSA.fromSSHAgent(jsch, buf); kpair=KeyPairECDSA.fromSSHAgent(jsch, buf);
} }
else{ else{
@@ -924,7 +924,7 @@ public abstract class KeyPair{
KeyPair kpair=null; KeyPair kpair=null;
if(type==DSA){ kpair=new KeyPairDSA(jsch); } if(type==DSA){ kpair=new KeyPairDSA(jsch); }
else if(type==RSA){ kpair=new KeyPairRSA(jsch); } else if(type==RSA){ kpair=new KeyPairRSA(jsch); }
else if(type==ECDSA){ kpair=new KeyPairECDSA(jsch); } else if(type==ECDSA){ kpair=new KeyPairECDSA(jsch, pubkey); }
else if(vendor==VENDOR_PKCS8){ kpair = new KeyPairPKCS8(jsch); } else if(vendor==VENDOR_PKCS8){ kpair = new KeyPairPKCS8(jsch); }
if(kpair!=null){ if(kpair!=null){

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2015-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2015-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:
@@ -55,6 +55,23 @@ public class KeyPairECDSA extends KeyPair{
this(jsch, null, null, null, null); this(jsch, null, null, null, null);
} }
public KeyPairECDSA(JSch jsch , byte[] pubkey){
this(jsch, null, null, null, null);
if(pubkey!=null){
byte[] name = new byte[8];
System.arraycopy(pubkey, 11, name, 0, 8);
if(Util.array_equals(name, Util.str2byte("nistp384"))){
key_size=384;
this.name=name;
}
if(Util.array_equals(name, Util.str2byte("nistp521"))){
key_size=521;
this.name=name;
}
}
}
public KeyPairECDSA(JSch jsch, public KeyPairECDSA(JSch jsch,
byte[] name, byte[] name,
byte[] r_array, byte[] r_array,
@@ -284,7 +301,7 @@ public class KeyPairECDSA extends KeyPair{
public byte[] getSignature(byte[] data){ public byte[] getSignature(byte[] data){
try{ try{
Class c=Class.forName((String)jsch.getConfig("signature.ecdsa")); Class c=Class.forName((String)jsch.getConfig("ecdsa-sha2-"+new String(name)));
SignatureECDSA ecdsa=(SignatureECDSA)(c.newInstance()); SignatureECDSA ecdsa=(SignatureECDSA)(c.newInstance());
ecdsa.init(); ecdsa.init();
ecdsa.setPrvKey(prv_array); ecdsa.setPrvKey(prv_array);
@@ -305,7 +322,7 @@ public class KeyPairECDSA extends KeyPair{
public Signature getVerifier(){ public Signature getVerifier(){
try{ try{
Class c=Class.forName((String)jsch.getConfig("signature.ecdsa")); Class c=Class.forName((String)jsch.getConfig("ecdsa-sha2-"+new String(name)));
final SignatureECDSA ecdsa=(SignatureECDSA)(c.newInstance()); final SignatureECDSA ecdsa=(SignatureECDSA)(c.newInstance());
ecdsa.init(); ecdsa.init();

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2015-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2015-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2013-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2013-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2012-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2012-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2006-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2006-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2013-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2013-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:
@@ -212,6 +212,20 @@ public class OpenSSHConfig implements ConfigRepository {
if(value != null) if(value != null)
break; break;
} }
// TODO: The following change should be applied,
// but it is breaking changes.
// The consensus is required to enable it.
/*
if(value!=null &&
(key.equals("SERVERALIVEINTERVAL") ||
key.equals("CONNECTTIMEOUT"))){
try {
int timeout = Integer.parseInt(value);
value = Integer.toString(timeout*1000);
} catch (NumberFormatException e) {
}
}
*/
return value; return value;
} }

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2013-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2013-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2006-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2006-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2006-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2006-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2005-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2005-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:
@@ -2677,9 +2677,11 @@ break;
String value = null; String value = null;
value = config.getUser(); if(username==null){
if(value != null) value = config.getUser();
username = value; if(value != null)
username = value;
}
value = config.getHostname(); value = config.getHostname();
if(value != null) if(value != null)

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2012-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2012-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2015-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2015-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2006-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2006-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2002-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2005-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2005-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2008-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2008-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2005-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2005-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2008-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2008-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2005-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2005-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2008-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2008-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2008-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2008-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2008-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2008-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

View File

@@ -1,6 +1,6 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* /*
Copyright (c) 2008-2016 ymnk, JCraft,Inc. All rights reserved. Copyright (c) 2008-2018 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:

Some files were not shown because too many files have changed in this diff Show More