╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─────────────────╮ │src/serve_ssh_protocol.zig│ ╰──────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────╮ │1683 try pk_ok.append(allocator, SSH_MSG_USERAUTH_PK_OK); │ │1684 try writeStringField(&pk_ok, allocator, algo); │ │1685 try writeStringField(&pk_ok, allocator, pubkey_blob);│ │1699 - try conn.writePacket(pk_ok.items); │ │1686 + try conn.writePacket(&.{pk_ok.items}); │ │1687 continue; │ │1688 } │ │1689 │ ╰───────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────╮ │1709 continue; │ │1710 } │ │1711 │ │1725 - try conn.writePacket(&[_]u8{SSH_MSG_USERAUTH_SUCCESS}); │ │1712 + try conn.writePacket(&.{&[_]u8{SSH_MSG_USERAUTH_SUCCESS}});│ │1713 return formatFingerprint(pubkey_blob); │ │1714 } │ │1715 } │ ╰─────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │1720 try buf.append(conn.allocator, SSH_MSG_USERAUTH_FAILURE); │ │1721 try writeNameList(&buf, conn.allocator, &.{"publickey"}); // allowed methods│ │1722 try buf.append(conn.allocator, 0); // partial_success = false │ │1736 - try conn.writePacket(buf.items); │ │1723 + try conn.writePacket(&.{buf.items}); │ │1724 } │ │1725 │ │1726 /// append the canonical publickey-signed-data bytes (RFC 4252 §7) to `buf`. │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────╮ │1905 _ = try takeString(&r, 256); │ │1906 const want_reply = (try r.takeByte()) != 0; │ │1907 if (want_reply) { │ │1921 - try conn.writePacket(&[_]u8{SSH_MSG_REQUEST_FAILURE}); │ │1908 + try conn.writePacket(&.{&[_]u8{SSH_MSG_REQUEST_FAILURE}});│ │1909 } │ │1910 } │ │1911 │ ╰────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────╮ │1945 try writeU32(&reply, allocator, local_id); │ │1946 try writeU32(&reply, allocator, initial_recv_window);│ │1947 try writeU32(&reply, allocator, max_packet_size); │ │1961 - try conn.writePacket(reply.items); │ │1948 + try conn.writePacket(&.{reply.items}); │ │1949 │ │1950 return .{ │ │1951 .local_id = local_id, │ ╰───────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │1973 try writeU32(&reply, allocator, reason); │ │1974 try writeStringField(&reply, allocator, description); │ │1975 try writeStringField(&reply, allocator, ""); // language tag │ │1989 - try conn.writePacket(reply.items); │ │1976 + try conn.writePacket(&.{reply.items}); │ │1977 } │ │1978 │ │1979 /// returns the session request if this one triggered it, else null. an exec│ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────╮ │2049 var packet: [5]u8 = undefined; │ │2050 packet[0] = msg_type; │ │2051 std.mem.writeInt(u32, packet[1..5], ch.remote_id, .big); │ │2065 - try conn.writePacket(&packet); │ │2052 + try conn.writePacket(&.{&packet}); │ │2053 } │ │2054 │ │2055 fn handleWindowAdjust(ch: *Channel, packet: []const u8) !void {│ ╰─────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │2114 try adj.append(conn.allocator, SSH_MSG_CHANNEL_WINDOW_ADJUST); │ │2115 try writeU32(&adj, conn.allocator, ch.remote_id); │ │2116 try writeU32(&adj, conn.allocator, add); │ │2130 - try conn.writePacket(adj.items); │ │2117 + try conn.writePacket(&.{adj.items}); │ │2118 } │ │2119 │ │2120 pub fn writeU32(buf: *std.ArrayList(u8), allocator: std.mem.Allocator, value: u32) !void {│ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │2151 try writeU32(&open, allocator, 7); │ │2152 try writeU32(&open, allocator, 32768); │ │2153 try writeU32(&open, allocator, 32768); │ │2167 - try sender.writePacket(io, &encoded_writer, open.items); │ │2168 - try sender.writePacket(io, &encoded_writer, &.{ SSH_MSG_CHANNEL_CLOSE, 0, 0, 0, 0 }); │ │2154 + try sender.writePacket(io, &encoded_writer, &.{open.items}); │ │2155 + try sender.writePacket(io, &encoded_writer, &.{&.{ SSH_MSG_CHANNEL_CLOSE, 0, 0, 0, 0 }});│ │2156 var reader = std.Io.Reader.fixed(encoded_writer.buffered()); │ │2157 var output: [256]u8 = undefined; │ │2158 var writer = std.Io.Writer.fixed(&output); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────╮ │src/test/ssh.zig│ ╰────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │69 var encoded: [128]u8 = undefined; │ │70 var encoded_writer = std.Io.Writer.fixed(&encoded); │ │71 var sender = proto.Cipher.init(&TestSession.key, 0); │ │72 - if (message) |msg| try sender.writePacket(std.testing.io, &encoded_writer, &.{ msg, 0, 0, 0, 0 }); │ │72 + if (message) |msg| try sender.writePacket(std.testing.io, &encoded_writer, &.{&.{ msg, 0, 0, 0, 0 }});│ │73 var ctx: TestSession = .{}; │ │74 ctx.init(encoded_writer.buffered()); │ │75 defer ctx.deinit(); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯