char *header = NULL;
char *body = NULL;
size_t body_used = 0;
+ const char digest[DIGEST_LEN] = "";
dir_server_t *ds = NULL;
(void) data;
routerlist_free_all();
/* create a trusted ds */
- ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, "", NULL,
+ ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, digest, NULL,
V3_DIRINFO, 1.0);
tt_assert(ds);
dir_server_add(ds);
char *body = NULL;
size_t body_used = 0;
dir_server_t *ds = NULL;
+ const char digest[DIGEST_LEN] = "";
(void) data;
MOCK(connection_write_to_buf_impl_, connection_write_to_buf_mock);
routerlist_free_all();
/* create a trusted ds */
- ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, "", NULL,
+ ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, digest, NULL,
V3_DIRINFO, 1.0);
tt_assert(ds);
dir_server_add(ds);
char *body = NULL;
size_t body_used = 0;
dir_server_t *ds = NULL;
+ const char digest[DIGEST_LEN] = "";
(void) data;
MOCK(connection_write_to_buf_impl_, connection_write_to_buf_mock);
routerlist_free_all();
/* create a trusted ds */
- ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, "", NULL,
+ ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, digest, NULL,
V3_DIRINFO, 1.0);
tt_assert(ds);
dir_connection_t *conn = NULL;
char *header = NULL;
dir_server_t *ds = NULL;
+ const char digest[DIGEST_LEN] = "";
(void) data;
clear_dir_servers();
routerlist_free_all();
/* create a trusted ds */
- ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, "", NULL,
+ ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, digest, NULL,
V3_DIRINFO, 1.0);
tt_assert(ds);
char *header = NULL, *body = NULL;
size_t body_used = 0;
dir_server_t *ds = NULL;
+ const char digest[DIGEST_LEN] = "";
(void) data;
clear_dir_servers();
dirvote_free_all();
/* create a trusted ds */
- ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, "", NULL,
+ ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, digest, NULL,
V3_DIRINFO, 1.0);
tt_assert(ds);
dir_server_add(ds);
int status_out = 0;
size_t body_used = 0;
dir_server_t *ds = NULL;
+ const char digest[DIGEST_LEN] = "";
(void) data;
clear_dir_servers();
mock_cert = authority_cert_parse_from_string(TEST_CERTIFICATE, NULL);
/* create a trusted ds */
- ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, "", NULL,
+ ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, digest, NULL,
V3_DIRINFO, 1.0);
tt_assert(ds);
dir_server_add(ds);
const char *msg_out = NULL;
int status_out = 0;
size_t body_used = 0;
+ const char digest[DIGEST_LEN] = "";
dir_server_t *ds = NULL;
(void) data;
mock_cert = authority_cert_parse_from_string(TEST_CERTIFICATE, NULL);
/* create a trusted ds */
- ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, "", NULL,
+ ds = trusted_dir_server_new("ds", "127.0.0.1", 9059, 9060, digest, NULL,
V3_DIRINFO, 1.0);
tt_assert(ds);
dir_server_add(ds);