diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-11-15 17:51:53 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-11-15 17:51:53 +0100 |
commit | 5f6a7d692e3faa440d94a5fc80ab3ba8bd09003d (patch) | |
tree | ba67cf8496a92af34344d530dc489b05789c0d43 /src | |
parent | 5b6343f51a0913400c15392389668a019727a9a1 (diff) | |
download | fastd-5f6a7d692e3faa440d94a5fc80ab3ba8bd09003d.tar fastd-5f6a7d692e3faa440d94a5fc80ab3ba8bd09003d.zip |
ec25519-fhmqvc: extend describe_peer to return the whole key
Diffstat (limited to 'src')
-rw-r--r-- | src/log.c | 2 | ||||
-rw-r--r-- | src/protocols/ec25519_fhmqvc/util.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -98,7 +98,7 @@ static size_t snprint_peer_str(char *buffer, size_t size, const fastd_peer_t *pe return snprintf_safe(buffer, size, "<%s>", peer->name); } else { - char buf[65]; + char buf[17]; if (conf.protocol->describe_peer(peer, buf, sizeof(buf))) return snprintf_safe(buffer, size, "{%s}", buf); } diff --git a/src/protocols/ec25519_fhmqvc/util.c b/src/protocols/ec25519_fhmqvc/util.c index f34f709..712669c 100644 --- a/src/protocols/ec25519_fhmqvc/util.c +++ b/src/protocols/ec25519_fhmqvc/util.c @@ -102,7 +102,7 @@ bool fastd_protocol_ec25519_fhmqvc_describe_peer(const fastd_peer_t *peer, char char dumpbuf[65]; hexdump(dumpbuf, peer->key->key.u8); - snprintf(buf, len, "%.16s", dumpbuf); + snprintf(buf, len, "%s", dumpbuf); return true; } |