X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=e80af7d94a7c3f246e9267eb5fde93d6fd4b534d;hb=b74572ee246f6da32ebf4e4b1a1c8e2197d64276;hp=beeef54e289045da4de1cb3c6d7e405360def36e;hpb=690df24583e0da336a826b2ad30967cfe9c22277;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index beeef54e..e80af7d9 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -343,9 +343,7 @@ bool id_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { return false; } - node_read_public_key(mesh, n); - - if(!ecdsa_active(n->ecdsa)) { + if(!node_read_public_key(mesh, n)) { logger(mesh, MESHLINK_ERROR, "No key known for peer %s", c->name); if(n->status.reachable && !n->status.waitingforkey) {