Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/packets/PacketUserauthInfoResponse.java @ 308:42b15aaa7ac7 ganymed
merge
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 14:21:50 -0700 |
parents | 071eccdff8ea |
children |
comparison
equal
deleted
inserted
replaced
306:90e47d99ea54 | 308:42b15aaa7ac7 |
---|---|
13 | 13 |
14 public PacketUserauthInfoResponse(String[] responses) { | 14 public PacketUserauthInfoResponse(String[] responses) { |
15 TypesWriter tw = new TypesWriter(); | 15 TypesWriter tw = new TypesWriter(); |
16 tw.writeByte(Packets.SSH_MSG_USERAUTH_INFO_RESPONSE); | 16 tw.writeByte(Packets.SSH_MSG_USERAUTH_INFO_RESPONSE); |
17 tw.writeUINT32(responses.length); | 17 tw.writeUINT32(responses.length); |
18 for(String response : responses) { | 18 |
19 for (String response : responses) { | |
19 tw.writeString(response); | 20 tw.writeString(response); |
20 } | 21 } |
22 | |
21 payload = tw.getBytes(); | 23 payload = tw.getBytes(); |
22 } | 24 } |
23 | 25 |
24 public byte[] getPayload() { | 26 public byte[] getPayload() { |
25 return payload; | 27 return payload; |