From 6473d6608bde40e1f2bf9bfe9226e8d241118e56 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 23 Jan 2015 01:05:00 +0100 Subject: ec25519-fhmqvc: add sender's public key to a few debug messages --- src/protocols/ec25519_fhmqvc/handshake.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c index c86d453..6ea48d4 100644 --- a/src/protocols/ec25519_fhmqvc/handshake.c +++ b/src/protocols/ec25519_fhmqvc/handshake.c @@ -546,7 +546,7 @@ static fastd_peer_t * add_dynamic(fastd_socket_t *sock, const fastd_peer_address } if (find_key(key, NULL)) { - pr_debug("ignoring handshake from %I (disabled key)", addr); + pr_debug("ignoring handshake from %I (disabled key %H)", addr, KEY_PRINT(key)); return NULL; } @@ -639,7 +639,7 @@ void fastd_protocol_ec25519_fhmqvc_handshake_handle(fastd_socket_t *sock, const if (!peer) { switch (errno) { case EPERM: - pr_debug("ignoring handshake from %I (incorrect source address)", remote_addr); + pr_debug("ignoring handshake from %I with key %H (incorrect source address)", remote_addr, KEY_PRINT(handshake->records[RECORD_SENDER_KEY].data)); return; case ENOENT: -- cgit v1.2.3