[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Style edit: make payload length easier to read (ascii -> hex)



commit 8a292395bb86ed6519aaec2a5c4848f2099fc908
Author: Dave Rolek <dmr-x@xxxxxxxxxx>
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),
 }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits