summaryrefslogtreecommitdiffstats
path: root/src/protocols/ec25519_fhmqvc
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-01-23 01:05:00 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-01-23 01:05:00 +0100
commit6473d6608bde40e1f2bf9bfe9226e8d241118e56 (patch)
treec62f057b65cf203cbc9ee9f74b6db77e00687571 /src/protocols/ec25519_fhmqvc
parentc5e3e5e3ad1206987aba6559c72e16582d9957f1 (diff)
downloadfastd-6473d6608bde40e1f2bf9bfe9226e8d241118e56.tar
fastd-6473d6608bde40e1f2bf9bfe9226e8d241118e56.zip
ec25519-fhmqvc: add sender's public key to a few debug messages
Diffstat (limited to 'src/protocols/ec25519_fhmqvc')
-rw-r--r--src/protocols/ec25519_fhmqvc/handshake.c4
1 files 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: