> + private static byte[] readLengthFirst(InputStream in) throws IOException {
> + int byte1 = in.read();
> + int byte2 = in.read();
> + int byte3 = in.read();
> + int byte4 = in.read();
> + int length = (byte1 << 24) + (byte2 << 16) + (byte3 << 8) + (byte4 <<
> 0);
> + byte[] val = new byte[length];
> + in.read(val, 0, length);
> + return val;
> + }
> +
> + /**
> + * @see SshKeys
> + */
> + // http://www.ietf.org/rfc/rfc4253.txt
> + private static void writeLengthFirst(byte[] array, ByteArrayOutputStream
> out) throws IOException {
Same as above. `writeString`? Or `rfc4253Write` or so?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9166347