diff options
Diffstat (limited to 'test/ssh.py')
-rw-r--r-- | test/ssh.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ssh.py b/test/ssh.py index 90eccb7e..53b15183 100644 --- a/test/ssh.py +++ b/test/ssh.py @@ -24,6 +24,9 @@ def ssh_byte(n): def ssh_uint32(n): return struct.pack(">L", n) +def ssh_uint64(n): + return struct.pack(">Q", n) + def ssh_string(s): return ssh_uint32(len(s)) + s @@ -54,6 +57,10 @@ def ssh_decode_uint32(s): return struct.unpack_from(">L", s, 0)[0], 4 @decoder +def ssh_decode_uint64(s): + return struct.unpack_from(">Q", s, 0)[0], 8 + +@decoder def ssh_decode_string(s): length = ssh_decode_uint32(s) assert length + 4 <= len(s) @@ -88,6 +95,7 @@ SSH1_AGENTC_REMOVE_RSA_IDENTITY = 8 SSH1_AGENTC_REMOVE_ALL_RSA_IDENTITIES = 9 SSH_AGENT_FAILURE = 5 SSH_AGENT_SUCCESS = 6 +SSH_AGENT_EXTENSION_FAILURE = 28 SSH2_AGENTC_REQUEST_IDENTITIES = 11 SSH2_AGENT_IDENTITIES_ANSWER = 12 SSH2_AGENTC_SIGN_REQUEST = 13 |