diff options
author | David Goulet <dgoulet@torproject.org> | 2016-05-11 10:21:34 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-01 14:01:41 -0400 |
commit | 0f27d92e4c420cae8fff0ab889ad8494461d6f8e (patch) | |
tree | 1257a2f10b3d46ea2a00f55e786517ac322d1087 /src/or/shared_random_state.c | |
parent | 8ac88f6f9739c5fd5fd5b47af63592faa80b8307 (diff) | |
download | tor-0f27d92e4c420cae8fff0ab889ad8494461d6f8e.tar.gz tor-0f27d92e4c420cae8fff0ab889ad8494461d6f8e.zip |
prop250: Add version to Commit line in vote and state
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/shared_random_state.c')
-rw-r--r-- | src/or/shared_random_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/shared_random_state.c b/src/or/shared_random_state.c index 115d95410b..9700bf5b26 100644 --- a/src/or/shared_random_state.c +++ b/src/or/shared_random_state.c @@ -563,7 +563,8 @@ disk_state_put_commit_line(const sr_commit_t *commit, config_line_t *line) /* Add extra whitespace so we can format the line correctly. */ tor_asprintf(&reveal_str, " %s", commit->encoded_reveal); } - tor_asprintf(&line->value, "%s %s %s%s", + tor_asprintf(&line->value, "%u %s %s %s%s", + SR_PROTO_VERSION, crypto_digest_algorithm_get_name(commit->alg), sr_commit_get_rsa_fpr(commit), commit->encoded_commit, |