~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server/: Use modern functions for address/text conversions.
[tripe]
/
server
/
keyset.c
diff --git
a/server/keyset.c
b/server/keyset.c
index
881cdd2
..
9429fa4
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));
})