╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─────────────────╮ │src/serve_ssh_protocol.zig│ ╰──────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1889 defer reply.deinit(allocator); │ │1890 try reply.append(allocator, if (success) SSH_MSG_CHANNEL_SUCCESS else SSH_MSG_CHANNEL_FAILURE);│ │1891 try writeU32(&reply, allocator, ch.remote_id); │ │1904 - try sc_cipher.writePacket(io, allocator, writer, reply.items); │ │1892 + try sc_cipher.writePacket(io, writer, reply.items); │ │1893 } │ │1894 │ │1895 fn handleWindowAdjust(ch: *Channel, packet: []const u8) !void { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │1966 try adj.append(allocator, SSH_MSG_CHANNEL_WINDOW_ADJUST); │ │1967 try writeU32(&adj, allocator, ch.remote_id); │ │1968 try writeU32(&adj, allocator, add); │ │1981 - try sc_cipher.writePacket(io, allocator, writer, adj.items); │ │1969 + try sc_cipher.writePacket(io, writer, adj.items); │ │1970 } │ │1971 │ │1972 pub fn writeU32(buf: *std.ArrayList(u8), allocator: std.mem.Allocator, value: u32) !void {│ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────╮ │src/test/ssh.zig│ ╰────────────────╯ ╭─────────────────────────────────────────────────────────────────────────╮ │242 defer req.deinit(allocator); │ │243 try req.append(allocator, proto.SSH_MSG_SERVICE_REQUEST); │ │244 try proto.writeStringField(&req, allocator, "ssh-userauth");│ │245 - try cs_cipher.writePacket(io, allocator, cw, req.items); │ │245 + try cs_cipher.writePacket(io, cw, req.items); │ │246 } │ │247 { │ │248 const accept = try sc_cipher.readPacket(allocator, cr); │ ╰─────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │271 try req.append(allocator, 0); // has_signature = false │ │272 try proto.writeStringField(&req, allocator, "ssh-ed25519"); │ │273 try proto.writeStringField(&req, allocator, user_pubkey_blob.items);│ │274 - try cs_cipher.writePacket(io, allocator, cw, req.items); │ │274 + try cs_cipher.writePacket(io, cw, req.items); │ │275 } │ │276 { │ │277 const pk_ok = try sc_cipher.readPacket(allocator, cr); │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │307 try proto.writeStringField(&req, allocator, "ssh-ed25519"); │ │308 try proto.writeStringField(&req, allocator, user_pubkey_blob.items);│ │309 try proto.writeStringField(&req, allocator, sig_wire.items); │ │310 - try cs_cipher.writePacket(io, allocator, cw, req.items); │ │310 + try cs_cipher.writePacket(io, cw, req.items); │ │311 } │ │312 { │ │313 const success = try sc_cipher.readPacket(allocator, cr); │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │333 try proto.writeU32(&req, allocator, client_channel_id); │ │334 try proto.writeU32(&req, allocator, 1 << 20); // initial window│ │335 try proto.writeU32(&req, allocator, 32768); // max packet │ │336 - try cs_cipher.writePacket(io, allocator, cw, req.items); │ │336 + try cs_cipher.writePacket(io, cw, req.items); │ │337 } │ │338 var server_channel_id: u32 = undefined; │ │339 { │ ╰────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────╮ │360 try proto.writeStringField(&req, allocator, "exec"); │ │361 try req.append(allocator, 1); // want_reply │ │362 try proto.writeStringField(&req, allocator, exec_command);│ │363 - try cs_cipher.writePacket(io, allocator, cw, req.items); │ │363 + try cs_cipher.writePacket(io, cw, req.items); │ │364 } │ │365 { │ │366 const success = try sc_cipher.readPacket(allocator, cr); │ ╰───────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │407 defer pkt.deinit(allocator); │ │408 try pkt.append(allocator, proto.SSH_MSG_CHANNEL_CLOSE); │ │409 try proto.writeU32(&pkt, allocator, server_channel_id); │ │410 - try cs_cipher.writePacket(io, allocator, cw, pkt.items); │ │410 + try cs_cipher.writePacket(io, cw, pkt.items); │ │411 } │ │412 │ │413 // simulate the client's TCP FIN so the server's teardown drain reads EOF│ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────╮ │541 defer req.deinit(allocator); │ │542 try req.append(allocator, proto.SSH_MSG_SERVICE_REQUEST); │ │543 try proto.writeStringField(&req, allocator, "ssh-userauth");│ │544 - try cs.writePacket(io, allocator, cw, req.items); │ │544 + try cs.writePacket(io, cw, req.items); │ │545 } │ │546 { │ │547 const accept = try sc.readPacket(allocator, cr); │ ╰─────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │568 try req.append(allocator, 0); │ │569 try proto.writeStringField(&req, allocator, "ssh-ed25519"); │ │570 try proto.writeStringField(&req, allocator, pubkey_blob.items);│ │571 - try cs.writePacket(io, allocator, cw, req.items); │ │571 + try cs.writePacket(io, cw, req.items); │ │572 } │ │573 { │ │574 const pk_ok = try sc.readPacket(allocator, cr); │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯