X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;fp=src%2Fprotocol_auth.c;h=4910a930184e60cb4ced3b24cf905093724a2589;hb=47de98b27b28e049c47ce29a056d245fb14a2576;hp=be4d2ea084688525e34134ec5204343c56fbfe16;hpb=b6ceafe7a5db5802e483795738943f01f1732926;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index be4d2ea0..4910a930 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -281,8 +281,9 @@ bool id_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { free(mykey); c->protocol_minor = 2; + c->allow_request = 1; - return sptps_start(&c->sptps, c, false, false, mesh->invitation_key, c->ecdsa, "tinc invitation", 15, send_meta_sptps, receive_invitation_sptps); + return sptps_start(&c->sptps, c, false, false, mesh->invitation_key, c->ecdsa, "meshlink invitation", 15, send_meta_sptps, receive_invitation_sptps); } /* Check if identity is a valid name */ @@ -341,9 +342,9 @@ bool id_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { char label[25 + strlen(mesh->self->name) + strlen(c->name)]; if(c->outgoing) - snprintf(label, sizeof label, "tinc TCP key expansion %s %s", mesh->self->name, c->name); + snprintf(label, sizeof label, "meshlink TCP key expansion %s %s", mesh->self->name, c->name); else - snprintf(label, sizeof label, "tinc TCP key expansion %s %s", c->name, mesh->self->name); + snprintf(label, sizeof label, "meshlink TCP key expansion %s %s", c->name, mesh->self->name); return sptps_start(&c->sptps, c, c->outgoing, false, mesh->self->connection->ecdsa, c->ecdsa, label, sizeof label, send_meta_sptps, receive_meta_sptps); }