diff options
author | Kenny Root <kenny@the-b.org> | 2009-06-25 22:46:30 +0000 |
---|---|---|
committer | Kenny Root <kenny@the-b.org> | 2009-06-25 22:46:30 +0000 |
commit | 12c1e528b5c5dc325d2b3887104f0cf277b83d0b (patch) | |
tree | 64d509ba6704f4d6937b48e248d106d8378c33e5 /src/com/trilead/ssh2/packets/PacketChannelAuthAgentReq.java | |
parent | 93d7a03dc05cb6bc230fff3b1d0b124263f00320 (diff) | |
download | connectbot-12c1e528b5c5dc325d2b3887104f0cf277b83d0b.tar.gz connectbot-12c1e528b5c5dc325d2b3887104f0cf277b83d0b.tar.bz2 connectbot-12c1e528b5c5dc325d2b3887104f0cf277b83d0b.zip |
Add authentication agent forwarding
git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@331 df292f66-193f-0410-a5fc-6d59da041ff2
Diffstat (limited to 'src/com/trilead/ssh2/packets/PacketChannelAuthAgentReq.java')
-rw-r--r-- | src/com/trilead/ssh2/packets/PacketChannelAuthAgentReq.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/com/trilead/ssh2/packets/PacketChannelAuthAgentReq.java b/src/com/trilead/ssh2/packets/PacketChannelAuthAgentReq.java new file mode 100644 index 0000000..95fa396 --- /dev/null +++ b/src/com/trilead/ssh2/packets/PacketChannelAuthAgentReq.java @@ -0,0 +1,33 @@ +package com.trilead.ssh2.packets; + +/** + * PacketGlobalAuthAgent. + * + * @author Kenny Root, kenny@the-b.org + * @version $Id$ + */ +public class PacketChannelAuthAgentReq +{ + byte[] payload; + + public int recipientChannelID; + + public PacketChannelAuthAgentReq(int recipientChannelID) + { + this.recipientChannelID = recipientChannelID; + } + + public byte[] getPayload() + { + if (payload == null) + { + TypesWriter tw = new TypesWriter(); + tw.writeByte(Packets.SSH_MSG_CHANNEL_REQUEST); + tw.writeUINT32(recipientChannelID); + tw.writeString("auth-agent-req@openssh.com"); + tw.writeBoolean(true); // want reply + payload = tw.getBytes(); + } + return payload; + } +} |