log_fn(LOG_INFO,"eof (status 200) while reading upload response: finished.");
break;
case 400:
- log_fn(LOG_WARN,"http status 400 (bad request) from dirserver. Is your clock skewed?");
+ log_fn(LOG_WARN,"http status 400 (bad request) response from dirserver.");
break;
case 403:
- log_fn(LOG_WARN,"http status 403 (unapproved server) from dirserver. Have you mailed arma your identity fingerprint? Are you using the right key?");
+ log_fn(LOG_WARN,"http status 403 (unapproved server) response from dirserver. Is your clock skewed? Have you mailed arma your identity fingerprint? Are you using the right key?");
break;
}
cp = body;
switch(dirserv_add_descriptor(&cp)) {
case -1:
- /* malformed descriptor, or clock is skewed, or something wrong */
+ /* malformed descriptor, or something wrong */
connection_write_to_buf(answer400, strlen(answer400), conn);
break;
case 0:
}
/* Return 1 if descriptor is well-formed and accepted;
- * 0 if well-formed and server is unapproved;
- * -1 if not well-formed or if clock is skewed or other error.
+ * 0 if well-formed and server or descriptor is unapproved;
+ * -1 if not well-formed or other error.
*
* Update *desc to point after the descriptor if the
* descriptor is well-formed.
/* Is there too much clock skew? */
now = time(NULL);
if (ri->published_on > now+ROUTER_ALLOW_SKEW) {
- log_fn(LOG_WARN, "Publication time for nickname %s is too far in the future; possible clock skew. Not adding", ri->nickname);
+ log_fn(LOG_WARN, "Publication time for nickname %s is too far in the future; possible clock skew. Not adding.", ri->nickname);
routerinfo_free(ri);
*desc = end;
- return -1;
+ return 0;
}
if (ri->published_on < now-ROUTER_MAX_AGE) {
- log_fn(LOG_WARN, "Publication time for router with nickname %s is too far in the past. Not adding", ri->nickname);
+ log_fn(LOG_WARN, "Publication time for router with nickname %s is too far in the past. Not adding.", ri->nickname);
routerinfo_free(ri);
*desc = end;
- return -1;
+ return 0;
}
/* Do we already have an entry for this router? */