diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-02 02:28:51 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-02 02:28:51 +0000 |
commit | 85c79ffbc7b965355c3b51cc81000d517089e74e (patch) | |
tree | eafeb903a90d64be26fb900f567528caa1916b5b /src/or/dirserv.c | |
parent | 1433a0b26fcc1e48ac8001c5438e00d140dbf2a9 (diff) | |
download | tor-85c79ffbc7b965355c3b51cc81000d517089e74e.tar.gz tor-85c79ffbc7b965355c3b51cc81000d517089e74e.zip |
canonicalize "src" and "dest" arg order in crypto.c (and others)
svn:r2644
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 4 |
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; } |