summaryrefslogtreecommitdiff
path: root/src/or/shared_random.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-01-09 11:33:05 -0500
committerDavid Goulet <dgoulet@torproject.org>2017-01-09 11:33:05 -0500
commit8a33abcd65ebebf268750612d52684659f8df71d (patch)
treed2b9ec09c3e9a20f7e2d3996142a3ef200beb9b0 /src/or/shared_random.h
parent655ffeadd53833d96a25a70261b31c60d6f0ac6d (diff)
downloadtor-8a33abcd65ebebf268750612d52684659f8df71d.tar.gz
tor-8a33abcd65ebebf268750612d52684659f8df71d.zip
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>
Diffstat (limited to 'src/or/shared_random.h')
-rw-r--r--src/or/shared_random.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/shared_random.h b/src/or/shared_random.h
index 9885934cc7..dbb8effeaa 100644
--- a/src/or/shared_random.h
+++ b/src/or/shared_random.h
@@ -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 */