[tor-commits] [stem/master] Style edit: make payload length easier to read (ascii -> hex)
atagar at torproject.org
atagar at torproject.org
Thu Jul 12 18:53:11 UTC 2018
commit 8a292395bb86ed6519aaec2a5c4848f2099fc908
Author: Dave Rolek <dmr-x at riseup.net>
Date: Thu Jul 12 02:26:24 2018 +0000
Style edit: make payload length easier to read (ascii -> hex)
Especially with the test case added just below the line this commit
changes, it becomes easier to identify the bytes that specify the
payload length and see it change line-to-line.
---
test/unit/client/cell.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/unit/client/cell.py b/test/unit/client/cell.py
index 1a07fc71..9be0f73b 100644
--- a/test/unit/client/cell.py
+++ b/test/unit/client/cell.py
@@ -86,7 +86,7 @@ CERTS_CELLS = {
}
AUTH_CHALLENGE_CELLS = {
- b'\x00\x00\x82\x00&' + CHALLENGE + b'\x00\x02\x00\x01\x00\x03': (CHALLENGE, [1, 3], b'', 2),
+ b'\x00\x00\x82\x00\x26' + CHALLENGE + b'\x00\x02\x00\x01\x00\x03': (CHALLENGE, [1, 3], b'', 2),
b'\x00\x00\x82\x00\x28' + CHALLENGE + b'\x00\x02\x00\x01\x00\x03' + b'\x01\x02': (CHALLENGE, [1, 3], b'\x01\x02', 2),
}
More information about the tor-commits
mailing list