Skip to content
Snippets Groups Projects
Commit 37f95e8d authored by Nick Mathewson's avatar Nick Mathewson :family:
Browse files

process_descs: Authorities require TAP keys for now.

parent 73b73c07
No related branches found
No related tags found
No related merge requests found
......@@ -762,6 +762,16 @@ dirserv_add_descriptor(routerinfo_t *ri, const char **msg, const char *source)
log_info(LD_DIR, "Assessing new descriptor: %s: %s",
ri->nickname, ri->platform);
/* For now, TAP keys are still required. */
if (! ri->tap_onion_pkey) {
log_info(LD_DIRSERV, "Rejecting descriptor from %s (source: %s); "
"it has no TAP key.",
router_describe(ri), source);
*msg = "Missing TAP key in descriptor.";
r = ROUTER_AUTHDIR_REJECTS;
goto fail;
}
/* Check whether this descriptor is semantically identical to the last one
* from this server. (We do this here and not in router_add_to_routerlist
* because we want to be able to accept the newest router descriptor that
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment