|
@@ -2757,6 +2757,7 @@ test_v3_networkstatus(void)
|
|
|
networkstatus_vote_t *con2, *con3;
|
|
|
char *detached_text1, *detached_text2;
|
|
|
ns_detached_signatures_t *dsig1, *dsig2;
|
|
|
+ const char *msg=NULL;
|
|
|
|
|
|
smartlist_shuffle(votes);
|
|
|
consensus_text2 = networkstatus_compute_consensus(votes, 3,
|
|
@@ -2799,7 +2800,7 @@ test_v3_networkstatus(void)
|
|
|
|
|
|
|
|
|
detached_text2 = networkstatus_get_detached_signatures(con2);
|
|
|
- test_eq(1, networkstatus_add_detached_signatures(con2, dsig1));
|
|
|
+ test_eq(1, networkstatus_add_detached_signatures(con2, dsig1, &msg));
|
|
|
tor_free(detached_text2);
|
|
|
detached_text2 = networkstatus_get_detached_signatures(con2);
|
|
|
|
|
@@ -2816,10 +2817,10 @@ test_v3_networkstatus(void)
|
|
|
test_eq(2, smartlist_len(dsig2->signatures));
|
|
|
|
|
|
|
|
|
- test_eq(0, networkstatus_add_detached_signatures(con2, dsig1));
|
|
|
+ test_eq(0, networkstatus_add_detached_signatures(con2, dsig1, &msg));
|
|
|
|
|
|
|
|
|
- test_eq(2, networkstatus_add_detached_signatures(con, dsig2));
|
|
|
+ test_eq(2, networkstatus_add_detached_signatures(con, dsig2, &msg));
|
|
|
|
|
|
test_assert(!networkstatus_check_voter_signature(con,
|
|
|
smartlist_get(con->voters, 0),
|