@@ -15,7 +15,8 @@ static bool tally_ballots(char *in_ballots_filename);
1515static bool decrypt_tally_shares (uint32_t num_decrypting_trustees );
1616static bool decrypt_tally_decryption_fragments (
1717 bool * requests_present , struct decryption_fragments_request * requests );
18- static bool export_tally_votes (char * export_path , char * filename_prefix , char * * output_filename );
18+ static bool export_tally_votes (char * export_path , char * filename_prefix ,
19+ char * * output_filename , uint32_t * tally_results_array );
1920
2021// Global state
2122static struct api_config api_config ;
@@ -28,7 +29,8 @@ bool API_TallyVotes(struct api_config config,
2829 char * ballots_filename ,
2930 char * export_path ,
3031 char * filename_prefix ,
31- char * * output_filename )
32+ char * * output_filename ,
33+ uint32_t * tally_results_array )
3234{
3335 bool ok = true;
3436
@@ -77,7 +79,7 @@ bool API_TallyVotes(struct api_config config,
7779 ok = decrypt_tally_decryption_fragments (request_present , requests );
7880
7981 if (ok )
80- ok = export_tally_votes (export_path , filename_prefix , output_filename );
82+ ok = export_tally_votes (export_path , filename_prefix , output_filename , tally_results_array );
8183
8284 // Cleanup
8385
@@ -254,7 +256,8 @@ bool decrypt_tally_decryption_fragments(
254256 return ok ;
255257}
256258
257- bool export_tally_votes (char * export_path , char * filename_prefix , char * * output_filename )
259+ bool export_tally_votes (char * export_path , char * filename_prefix ,
260+ char * * output_filename , uint32_t * tally_results_array )
258261{
259262 bool ok = true;
260263 char * default_prefix = "electionguard_tally-" ;
@@ -269,7 +272,7 @@ bool export_tally_votes(char *export_path, char *filename_prefix, char **output_
269272 FILE * out = fopen (* output_filename , "w+" );
270273
271274 enum Decryption_Coordinator_status status =
272- Decryption_Coordinator_all_fragments_received (coordinator , out );
275+ Decryption_Coordinator_all_fragments_received (coordinator , out , tally_results_array );
273276
274277 if (status != DECRYPTION_COORDINATOR_SUCCESS )
275278 ok = false;
0 commit comments