273
|
1 /*
|
|
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
|
|
3 * Please refer to the LICENSE.txt for licensing details.
|
|
4 */
|
|
5 package ch.ethz.ssh2.packets;
|
|
6
|
|
7 import ch.ethz.ssh2.DHGexParameters;
|
|
8
|
|
9 /**
|
|
10 * @author Christian Plattner
|
|
11 * @version $Id: PacketKexDhGexRequestOld.java 160 2014-05-01 14:30:26Z dkocher@sudo.ch $
|
|
12 */
|
|
13 public final class PacketKexDhGexRequestOld {
|
|
14
|
|
15 private final byte[] payload;
|
|
16
|
|
17 public PacketKexDhGexRequestOld(DHGexParameters para) {
|
|
18 TypesWriter tw = new TypesWriter();
|
|
19 tw.writeByte(Packets.SSH_MSG_KEX_DH_GEX_REQUEST_OLD);
|
|
20 tw.writeUINT32(para.getPref_group_len());
|
|
21 payload = tw.getBytes();
|
|
22 }
|
|
23
|
|
24 public byte[] getPayload() {
|
|
25 return payload;
|
|
26 }
|
|
27 }
|