mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'bug25008'
This commit is contained in:
@@ -289,7 +289,7 @@ helper_add_hsdir_to_networkstatus(networkstatus_t *ns,
|
||||
|
||||
memcpy(rs->identity_digest, identity, DIGEST_LEN);
|
||||
rs->is_hs_dir = is_hsdir;
|
||||
rs->supports_v3_hsdir = 1;
|
||||
rs->pv.supports_v3_hsdir = 1;
|
||||
strlcpy(rs->nickname, nickname, sizeof(rs->nickname));
|
||||
tor_addr_parse(&ipv4_addr, "1.2.3.4");
|
||||
ri->addr = tor_addr_to_ipv4h(&ipv4_addr);
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define STATEFILE_PRIVATE
|
||||
#define TOR_CHANNEL_INTERNAL_
|
||||
#define HS_CLIENT_PRIVATE
|
||||
#define ROUTERPARSE_PRIVATE
|
||||
|
||||
#include "test.h"
|
||||
#include "test_helpers.h"
|
||||
@@ -37,6 +38,7 @@
|
||||
#include "networkstatus.h"
|
||||
#include "nodelist.h"
|
||||
#include "relay.h"
|
||||
#include "routerparse.h"
|
||||
|
||||
#include "hs_common.h"
|
||||
#include "hs_config.h"
|
||||
@@ -1210,6 +1212,7 @@ test_build_update_descriptors(void *arg)
|
||||
/* Ugly yes but we never free the "ri" object so this just makes things
|
||||
* easier. */
|
||||
ri.protocol_list = (char *) "HSDir=1-2 LinkAuth=3";
|
||||
summarize_protover_flags(&ri.pv, ri.protocol_list, NULL);
|
||||
ret = curve25519_secret_key_generate(&curve25519_secret_key, 0);
|
||||
tt_int_op(ret, OP_EQ, 0);
|
||||
ri.onion_curve25519_pkey =
|
||||
|
||||
Reference in New Issue
Block a user