aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir_common.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-05-01 08:58:57 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-05-01 10:07:09 -0400
commit15e8ce39379fde7b6cddb4b06b3d8e01fadd4867 (patch)
treec83d02466d49a08eebb274100a59e01872cb9f2c /src/test/test_dir_common.c
parent43bba89656cce89964f260d46f2550ab9af00c9e (diff)
downloadtor-15e8ce39379fde7b6cddb4b06b3d8e01fadd4867.tar.gz
tor-15e8ce39379fde7b6cddb4b06b3d8e01fadd4867.zip
Move back dirvote_authority_cert_dup to dirvote.c
Originally, it was made public outside of the dirauth module but it is no longer needed. In doing so, we put it back in dirvote.c and reverted its name to the original one: dirvote_authority_cert_dup() --> authority_cert_dup() Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_dir_common.c')
-rw-r--r--src/test/test_dir_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_dir_common.c b/src/test/test_dir_common.c
index 8c6d99ccec..02d3295ca6 100644
--- a/src/test/test_dir_common.c
+++ b/src/test/test_dir_common.c
@@ -307,7 +307,7 @@ dir_common_construct_vote_1(networkstatus_t **vote, authority_cert_t *cert,
* Set up a vote; generate it; try to parse it.
*/
smartlist_add((*vote)->voters, voter);
- (*vote)->cert = dirvote_authority_cert_dup(cert);
+ (*vote)->cert = authority_cert_dup(cert);
smartlist_split_string((*vote)->net_params, "circuitwindow=101 foo=990",
NULL, 0, 0);
*n_vrs = 0;
@@ -356,7 +356,7 @@ dir_common_construct_vote_2(networkstatus_t **vote, authority_cert_t *cert,
* Set up a vote; generate it; try to parse it.
*/
smartlist_add((*vote)->voters, voter);
- (*vote)->cert = dirvote_authority_cert_dup(cert);
+ (*vote)->cert = authority_cert_dup(cert);
if (! (*vote)->net_params)
(*vote)->net_params = smartlist_new();
smartlist_split_string((*vote)->net_params,
@@ -407,7 +407,7 @@ dir_common_construct_vote_3(networkstatus_t **vote, authority_cert_t *cert,
* Set up a vote; generate it; try to parse it.
*/
smartlist_add((*vote)->voters, voter);
- (*vote)->cert = dirvote_authority_cert_dup(cert);
+ (*vote)->cert = authority_cert_dup(cert);
smartlist_split_string((*vote)->net_params, "circuitwindow=80 foo=660",
NULL, 0, 0);
/* add routerstatuses */