mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 15:20:54 +03:00
fhm
This commit is contained in:
@@ -35,7 +35,7 @@ public abstract class AbstractAuthMethod
|
|||||||
/** {@link AuthParams} useful for building request. */
|
/** {@link AuthParams} useful for building request. */
|
||||||
protected AuthParams params;
|
protected AuthParams params;
|
||||||
|
|
||||||
/** Create with the {@code name} of this authentication method. */
|
/** @param name the {@code name} of this authentication method. */
|
||||||
protected AbstractAuthMethod(String name) {
|
protected AbstractAuthMethod(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,8 +43,7 @@ public class AuthHostbased
|
|||||||
protected SSHPacket buildReq()
|
protected SSHPacket buildReq()
|
||||||
throws UserAuthException {
|
throws UserAuthException {
|
||||||
SSHPacket req = putPubKey(super.buildReq());
|
SSHPacket req = putPubKey(super.buildReq());
|
||||||
req.putString(hostname == null ? params.getTransport().getRemoteHost() : hostname) //
|
req.putString(hostname == null ? params.getTransport().getRemoteHost() : hostname).putString(hostuser);
|
||||||
.putString(hostuser);
|
|
||||||
return putSig(req);
|
return putSig(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public interface ModeGetter {
|
|||||||
int getPermissions(File f)
|
int getPermissions(File f)
|
||||||
throws IOException;
|
throws IOException;
|
||||||
|
|
||||||
/** Whether this implementation can provide mtime and atime information. */
|
/** @return whether this implementation can provide mtime and atime information. */
|
||||||
boolean preservesTimes();
|
boolean preservesTimes();
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -162,7 +162,6 @@ public final class SCPDownloadClient
|
|||||||
signal("ACK: D");
|
signal("ACK: D");
|
||||||
|
|
||||||
do {
|
do {
|
||||||
;
|
|
||||||
} while (!process(null, readMessage(), f));
|
} while (!process(null, readMessage(), f));
|
||||||
|
|
||||||
signal("ACK: E");
|
signal("ACK: E");
|
||||||
|
|||||||
Reference in New Issue
Block a user