comparison src/ch/ethz/ssh2/packets/PacketChannelAuthAgentReq.java @ 288:5824a1475be4 ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 19:59:32 -0700
parents
children
comparison
equal deleted inserted replaced
287:db9b028016de 288:5824a1475be4
1 package ch.ethz.ssh2.packets;
2
3 /**
4 * PacketGlobalAuthAgent.
5 *
6 * @author Kenny Root, kenny@the-b.org
7 * @version $Id$
8 */
9 public class PacketChannelAuthAgentReq {
10 byte[] payload;
11
12 public int recipientChannelID;
13
14 public PacketChannelAuthAgentReq(int recipientChannelID) {
15 this.recipientChannelID = recipientChannelID;
16 }
17
18 public byte[] getPayload() {
19 if (payload == null) {
20 TypesWriter tw = new TypesWriter();
21 tw.writeByte(Packets.SSH_MSG_CHANNEL_REQUEST);
22 tw.writeUINT32(recipientChannelID);
23 tw.writeString("auth-agent-req@openssh.com");
24 tw.writeBoolean(true); // want reply
25 payload = tw.getBytes();
26 }
27
28 return payload;
29 }
30 }