diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-09-14 11:57:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-10-15 15:17:12 -0400 |
commit | 8b2f6b27fdc03f12d092d37c42d1995ff7426916 (patch) | |
tree | e43bd2156f445597940f0b9b386920811e7a38de /src/or/rendcommon.c | |
parent | 8d41e6c47126fb467858f98b06ab7460dcc6647b (diff) | |
download | tor-8b2f6b27fdc03f12d092d37c42d1995ff7426916.tar.gz tor-8b2f6b27fdc03f12d092d37c42d1995ff7426916.zip |
Make signature-generation code handle different key and digest lengths.
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index df7195e3ea..c7eb2a9d08 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -618,7 +618,8 @@ rend_encode_v2_descriptors(smartlist_t *descs_out, } if (router_append_dirobj_signature(desc_str + written, desc_len - written, - desc_digest, service_key) < 0) { + desc_digest, DIGEST_LEN, + service_key) < 0) { log_warn(LD_BUG, "Couldn't sign desc."); rend_encoded_v2_service_descriptor_free(enc); goto err; |