control: Add GETINFO command for the shared random values

Add the "sr/current" and "sr/previous" keys for the GETINFO command in order
to get through the control port the shared random values from the consensus.

Closes #19925

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet
2017-01-09 11:33:05 -05:00
parent 655ffeadd5
commit 8a33abcd65
3 changed files with 73 additions and 0 deletions
+4
View File
@@ -129,6 +129,10 @@ const char *sr_commit_get_rsa_fpr(const sr_commit_t *commit)
void sr_compute_srv(void);
sr_commit_t *sr_generate_our_commit(time_t timestamp,
const authority_cert_t *my_rsa_cert);
char *sr_get_current_for_control(void);
char *sr_get_previous_for_control(void);
#ifdef SHARED_RANDOM_PRIVATE
/* Encode */