From b8bdd8237ca51439995e1990bbc4f39f8a96fbfe Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 28 Jun 2019 17:37:10 -0400 Subject: ... --- test/test_p2p.cpp | 2 +- test/test_p2p_tls.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_p2p.cpp b/test/test_p2p.cpp index 5fc930a..3a30ed2 100644 --- a/test/test_p2p.cpp +++ b/test/test_p2p.cpp @@ -93,7 +93,7 @@ struct Net { connected ? "connected to" : "disconnected from", std::string(conn->get_peer_addr()).c_str()); }); - net->reg_unknown_peer_handler([this](const NetAddr &claimed_addr) { + net->reg_unknown_peer_handler([this](const NetAddr &claimed_addr, const salticidae::X509 *) { fprintf(stdout, "net %lu: unknown peer %s attempts to connnect\n", this->id, std::string(claimed_addr).c_str()); }); diff --git a/test/test_p2p_tls.cpp b/test/test_p2p_tls.cpp index fa0487d..f814643 100644 --- a/test/test_p2p_tls.cpp +++ b/test/test_p2p_tls.cpp @@ -119,7 +119,7 @@ struct Net { std::string(conn->get_peer_addr()).c_str(), salticidae::get_hash(conn->get_peer_cert()->get_der()).to_hex().c_str()); }); - net->reg_unknown_peer_handler([this](const NetAddr &claimed_addr) { + net->reg_unknown_peer_handler([this](const NetAddr &claimed_addr, const salticidae::X509 *) { fprintf(stdout, "net %lu: unknown peer %s attempts to connnect\n", this->id, std::string(claimed_addr).c_str()); }); -- cgit v1.2.3-70-g09d2