mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 16:18:05 +03:00
.
This commit is contained in:
@@ -90,9 +90,9 @@ public abstract class AbstractSignature
|
|||||||
| sig[i++] & 0x000000ff;
|
| sig[i++] & 0x000000ff;
|
||||||
i += j;
|
i += j;
|
||||||
j = sig[i++] << 24 & 0xff000000
|
j = sig[i++] << 24 & 0xff000000
|
||||||
| sig[i++] << 16 & 0x00ff0000
|
| sig[i++] << 16 & 0x00ff0000
|
||||||
| sig[i++] << 8 & 0x0000ff00
|
| sig[i++] << 8 & 0x0000ff00
|
||||||
| sig[i++] & 0x000000ff;
|
| sig[i++] & 0x000000ff;
|
||||||
byte[] newSig = new byte[j];
|
byte[] newSig = new byte[j];
|
||||||
System.arraycopy(sig, i, newSig, 0, j);
|
System.arraycopy(sig, i, newSig, 0, j);
|
||||||
sig = newSig;
|
sig = newSig;
|
||||||
|
|||||||
@@ -35,8 +35,8 @@
|
|||||||
*/
|
*/
|
||||||
package net.schmizz.sshj.transport;
|
package net.schmizz.sshj.transport;
|
||||||
|
|
||||||
import net.schmizz.concurrent.Event;
|
|
||||||
import net.schmizz.concurrent.ErrorDeliveryUtil;
|
import net.schmizz.concurrent.ErrorDeliveryUtil;
|
||||||
|
import net.schmizz.concurrent.Event;
|
||||||
import net.schmizz.sshj.common.Buffer;
|
import net.schmizz.sshj.common.Buffer;
|
||||||
import net.schmizz.sshj.common.DisconnectReason;
|
import net.schmizz.sshj.common.DisconnectReason;
|
||||||
import net.schmizz.sshj.common.ErrorNotifiable;
|
import net.schmizz.sshj.common.ErrorNotifiable;
|
||||||
@@ -234,11 +234,11 @@ final class KeyExchanger
|
|||||||
|
|
||||||
private void gotKexInit(SSHPacket buf)
|
private void gotKexInit(SSHPacket buf)
|
||||||
throws TransportException {
|
throws TransportException {
|
||||||
Proposal serverProposal = new Proposal(buf);
|
final Proposal serverProposal = new Proposal(buf);
|
||||||
negotiatedAlgs = clientProposal.negotiate(serverProposal);
|
negotiatedAlgs = clientProposal.negotiate(serverProposal);
|
||||||
log.debug("Negotiated algorithms: {}", negotiatedAlgs);
|
log.debug("Negotiated algorithms: {}", negotiatedAlgs);
|
||||||
kex = Factory.Named.Util.create(transport.getConfig().getKeyExchangeFactories(), negotiatedAlgs
|
kex = Factory.Named.Util.create(transport.getConfig().getKeyExchangeFactories(),
|
||||||
.getKeyExchangeAlgorithm());
|
negotiatedAlgs.getKeyExchangeAlgorithm());
|
||||||
try {
|
try {
|
||||||
kex.init(transport,
|
kex.init(transport,
|
||||||
transport.getServerID().getBytes(IOUtils.UTF8),
|
transport.getServerID().getBytes(IOUtils.UTF8),
|
||||||
|
|||||||
Reference in New Issue
Block a user