summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 56b2167d01..0889612e67 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -651,7 +651,7 @@ dirserv_dump_directory_to_string(char *s, size_t maxlen,
log_fn(LOG_WARN,"couldn't compute digest");
return -1;
}
- if (crypto_pk_private_sign(private_key, digest, 20, signature) < 0) {
+ if (crypto_pk_private_sign(private_key, signature, digest, 20) < 0) {
log_fn(LOG_WARN,"couldn't sign digest");
return -1;
}
@@ -840,7 +840,7 @@ static int generate_runningrouters(crypto_pk_env_t *private_key)
log_fn(LOG_WARN,"couldn't compute digest");
goto err;
}
- if (crypto_pk_private_sign(private_key, digest, 20, signature) < 0) {
+ if (crypto_pk_private_sign(private_key, signature, digest, 20) < 0) {
log_fn(LOG_WARN,"couldn't sign digest");
goto err;
}