chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
23bbe60
)
server/keyset.c: Present message types in hex.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 16 Sep 2017 15:22:36 +0000
(16:22 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 14 Jun 2018 09:34:25 +0000
(10:34 +0100)
server/keyset.c
patch
|
blob
|
blame
|
history
diff --git
a/server/keyset.c
b/server/keyset.c
index 881cdd22e133016e69b67151e65fd7bacea4ee51..9429fa4ab01d3c37b7c3c8078aa4b5bec5d1c3a3 100644
(file)
--- a/
server/keyset.c
+++ b/
server/keyset.c
@@
-82,7
+82,7
@@
static int doencrypt(keyset *ks, unsigned ty, buf *b, buf *bb)
IF_TRACING(T_KEYSET, {
trace(T_KEYSET,
IF_TRACING(T_KEYSET, {
trace(T_KEYSET,
- "keyset: encrypting packet %lu (type
%u
) using keyset %u",
+ "keyset: encrypting packet %lu (type
0x%02x
) using keyset %u",
(unsigned long)ks->oseq, ty, ks->seq);
trace_block(T_CRYPTO, "crypto: plaintext packet", BCUR(b), sz);
})
(unsigned long)ks->oseq, ty, ks->seq);
trace_block(T_CRYPTO, "crypto: plaintext packet", BCUR(b), sz);
})
@@
-134,7
+134,7
@@
static int dodecrypt(keyset *ks, unsigned ty, buf *b, buf *bb, uint32 *seq)
IF_TRACING(T_KEYSET, {
trace(T_KEYSET,
IF_TRACING(T_KEYSET, {
trace(T_KEYSET,
- "keyset: try decrypting packet (type
%u
) using keyset %u",
+ "keyset: try decrypting packet (type
0x%02x
) using keyset %u",
ty, ks->seq);
trace_block(T_CRYPTO, "crypto: ciphertext packet", BCUR(b), BLEFT(b));
})
ty, ks->seq);
trace_block(T_CRYPTO, "crypto: ciphertext packet", BCUR(b), BLEFT(b));
})