]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Add missing symbols to meshlink.sym.
[meshlink] / src / protocol_auth.c
index 7f00da2b950b2c0690105b61e41f82ca7cadc040..b7f6acdda03315f2ec72aa899983f56f473022dd 100644 (file)
@@ -186,7 +186,7 @@ static bool finalize_invitation(meshlink_handle_t *mesh, connection_t *c, const
 
        fclose(f);
 
-       logger(mesh, MESHLINK_INFO, "Key succesfully received from %s", c->name);
+       logger(mesh, MESHLINK_INFO, "Key successfully received from %s", c->name);
 
        //TODO: callback to application to inform of an accepted invitation
 
@@ -258,7 +258,7 @@ static bool receive_invitation_sptps(void *handle, uint8_t type, const void *dat
                return false;
        }
 
-       if(time(NULL) > st.st_mtime + mesh->invitation_timeout) {
+       if(time(NULL) > (time_t)(st.st_mtime + mesh->invitation_timeout)) {
                logger(mesh, MESHLINK_ERROR, "Peer %s tried to use an outdated invitation file %s\n", c->name, usedname);
                fclose(f);
                unlink(usedname);
@@ -339,7 +339,7 @@ static bool receive_invitation_sptps(void *handle, uint8_t type, const void *dat
 
        c->status.invitation_used = true;
 
-       logger(mesh, MESHLINK_INFO, "Invitation %s succesfully sent to %s", cookie, c->name);
+       logger(mesh, MESHLINK_INFO, "Invitation %s successfully sent to %s", cookie, c->name);
        return true;
 }
 
@@ -428,7 +428,7 @@ bool id_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
        get_config_bool(lookup_config(c->config_tree, "blacklisted"), &blacklisted);
 
        if(blacklisted) {
-               logger(mesh, MESHLINK_EPEER, "Peer %s is blacklisted", c->name);
+               logger(mesh, MESHLINK_INFO, "Peer %s is blacklisted", c->name);
                return false;
        }