summaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorJohn Brooks <special@torproject.org>2016-05-09 13:43:14 -0400
committerJohn Brooks <special@torproject.org>2016-05-09 13:53:09 -0400
commit896271d525b2b31950572293c512224ca57cee02 (patch)
tree2f987b33a72911d566b385e90a66f47ea199f3cc /src/or/rendservice.c
parentb531fc7d9a8f75969b0446578ee4afcb109bae3d (diff)
downloadtor-896271d525b2b31950572293c512224ca57cee02.tar.gz
tor-896271d525b2b31950572293c512224ca57cee02.zip
Use uint8_t for rend descriptor_cookie fields
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index db6bc4b72e..22a01c9d32 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -1208,10 +1208,10 @@ rend_service_load_auth_keys(rend_service_t *s, const char *hfname)
memcpy(client->descriptor_cookie, parsed->descriptor_cookie,
REND_DESC_COOKIE_LEN);
} else {
- crypto_rand(client->descriptor_cookie, REND_DESC_COOKIE_LEN);
+ crypto_rand((char *) client->descriptor_cookie, REND_DESC_COOKIE_LEN);
}
if (base64_encode(desc_cook_out, 3*REND_DESC_COOKIE_LEN_BASE64+1,
- client->descriptor_cookie,
+ (char *) client->descriptor_cookie,
REND_DESC_COOKIE_LEN, 0) < 0) {
log_warn(LD_BUG, "Could not base64-encode descriptor cookie.");
goto err;