mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
whitespace fixes
This commit is contained in:
parent
ab932cd7bf
commit
2729f166cb
@ -2898,7 +2898,8 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
|
||||
listbadexits);
|
||||
|
||||
if (ri->cache_info.signing_key_cert) {
|
||||
memcpy(vrs->ed25519_id, ri->cache_info.signing_key_cert->signing_key.pubkey,
|
||||
memcpy(vrs->ed25519_id,
|
||||
ri->cache_info.signing_key_cert->signing_key.pubkey,
|
||||
ED25519_PUBKEY_LEN);
|
||||
}
|
||||
|
||||
|
@ -2036,7 +2036,8 @@ router_build_fresh_descriptor(routerinfo_t **r, extrainfo_t **e)
|
||||
routerinfo_free(ri);
|
||||
return -1;
|
||||
}
|
||||
ri->cache_info.signing_key_cert = tor_cert_dup(get_master_signing_key_cert());
|
||||
ri->cache_info.signing_key_cert =
|
||||
tor_cert_dup(get_master_signing_key_cert());
|
||||
|
||||
get_platform_str(platform, sizeof(platform));
|
||||
ri->platform = tor_strdup(platform);
|
||||
|
@ -5215,7 +5215,8 @@ routerinfo_incompatible_with_extrainfo(const crypto_pk_t *identity_pkey,
|
||||
goto err; /* different servers */
|
||||
}
|
||||
|
||||
if (! tor_cert_opt_eq(sd->signing_key_cert,ei->cache_info.signing_key_cert)) {
|
||||
if (! tor_cert_opt_eq(sd->signing_key_cert,
|
||||
ei->cache_info.signing_key_cert)) {
|
||||
if (msg) *msg = "Extrainfo signing key cert didn't match routerinfo";
|
||||
goto err; /* different servers */
|
||||
}
|
||||
|
@ -1405,7 +1405,8 @@ router_parse_entry_from_string(const char *s, const char *end,
|
||||
log_warn(LD_DIR, "Couldn't parse ed25519 cert");
|
||||
goto err;
|
||||
}
|
||||
router->cache_info.signing_key_cert = cert; /* makes sure it gets freed.*/
|
||||
/* makes sure it gets freed. */
|
||||
router->cache_info.signing_key_cert = cert;
|
||||
|
||||
if (cert->cert_type != CERT_TYPE_ID_SIGNING ||
|
||||
! cert->signing_key_included) {
|
||||
@ -1600,8 +1601,8 @@ router_parse_entry_from_string(const char *s, const char *end,
|
||||
}
|
||||
|
||||
if (tok->n_args >= 2) {
|
||||
if (digest256_from_base64(router->cache_info.extra_info_digest256, tok->args[1])
|
||||
< 0) {
|
||||
if (digest256_from_base64(router->cache_info.extra_info_digest256,
|
||||
tok->args[1]) < 0) {
|
||||
log_warn(LD_DIR, "Invalid extra info digest256 %s",
|
||||
escaped(tok->args[1]));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user