Allow spaces to be omitted in approved-router file fingerprints. Requested by arma.
svn:r15296
- When building a consensus do not include routers that are down.
This will cut down 30% to 40% on consensus size. Implements
proposal 138.
+ - In directory authorities' approved-routers files, allow
+ fingerprints with or without space.
o Bugfixes:
- Asking for a conditional consensus at .../consensus/<fingerprints>
Nick
o Send or-dev email about proposal statuses.
- - Send or-dev email about window for new proposals, once arma and
+ o Send or-dev email about window for new proposals, once arma and
nick agree.
- Finish buffer stuff in libevent; start using it in Tor.
- Tors start believing the contents of NETINFO cells.
- - Work with Steven and Roger to decide which parts of Paul's project
+ . Work with Steven and Roger to decide which parts of Paul's project
he wants to work on.
- - let approved-routers lines omit spaces in fingerprint.
+ o let approved-routers lines omit spaces in fingerprint.
Matt
- Fit Vidalia in 640x480 again.
fingerprint_list_new = authdir_config_new();
for (list=front; list; list=list->next) {
+ char digest_tmp[DIGEST_LEN];
nickname = list->key; fingerprint = list->value;
if (strlen(nickname) > MAX_NICKNAME_LEN) {
log_notice(LD_CONFIG,
nickname);
continue;
}
- if (strlen(fingerprint) != FINGERPRINT_LEN ||
- !crypto_pk_check_fingerprint_syntax(fingerprint)) {
+ tor_strstrip(fingerprint, " "); /* remove spaces */
+ if (strlen(fingerprint) != HEX_DIGEST_LEN ||
+ base16_decode(digest_tmp, sizeof(digest_tmp),
+ fingerprint, HEX_DIGEST_LEN) < 0) {
log_notice(LD_CONFIG,
"Invalid fingerprint (nickname '%s', "
"fingerprint %s). Skipping.",