Mercurial > 510Connectbot
comparison src/com/trilead/ssh2/packets/PacketKexDhGexRequestOld.java @ 0:0ce5cc452d02
initial version
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 22 May 2014 10:41:19 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0ce5cc452d02 |
---|---|
1 | |
2 package com.trilead.ssh2.packets; | |
3 | |
4 import com.trilead.ssh2.DHGexParameters; | |
5 | |
6 /** | |
7 * PacketKexDhGexRequestOld. | |
8 * | |
9 * @author Christian Plattner, plattner@trilead.com | |
10 * @version $Id: PacketKexDhGexRequestOld.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ | |
11 */ | |
12 public class PacketKexDhGexRequestOld { | |
13 byte[] payload; | |
14 | |
15 int n; | |
16 | |
17 public PacketKexDhGexRequestOld(DHGexParameters para) { | |
18 this.n = para.getPref_group_len(); | |
19 } | |
20 | |
21 public byte[] getPayload() { | |
22 if (payload == null) { | |
23 TypesWriter tw = new TypesWriter(); | |
24 tw.writeByte(Packets.SSH_MSG_KEX_DH_GEX_REQUEST_OLD); | |
25 tw.writeUINT32(n); | |
26 payload = tw.getBytes(); | |
27 } | |
28 | |
29 return payload; | |
30 } | |
31 } |