Add sha256 hash and ordering.

This commit is contained in:
Michael Mikovsky
2026-05-31 13:22:02 -06:00
parent 0b11f8609e
commit b2e2523860
7 changed files with 234 additions and 67 deletions
+4 -2
View File
@@ -1,8 +1,10 @@
use unshell::hash_32;
/// Leaf id used by the generated fake PTY wrapper.
pub const LEAF_FAKE_PTY: u32 = unshell::hash("dev.unshell.v1.pty");
pub const LEAF_FAKE_PTY: u32 = hash_32!("dev.unshell.v1.pty");
/// Outer procedure id used by all fake PTY session packets.
pub const PROC_PTY: u32 = unshell::hash("dev.unshell.v1.pty.pty");
pub const PROC_PTY: u32 = hash_32!("dev.unshell.v1.pty.pty");
/// Downward opcode that opens one PTY session.
pub const OP_OPEN: u8 = 0;