aboutsummaryrefslogtreecommitdiff
path: root/src/tools/tor-gencert.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-29 10:16:57 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-29 12:21:52 -0400
commit40199b180e53aa36477c75782be51bd689189287 (patch)
tree793039bc3af07c9f006a7297c214f54e19d9cd61 /src/tools/tor-gencert.c
parent0362cdc169a785a386d3c60d354cd34fafde5770 (diff)
downloadtor-40199b180e53aa36477c75782be51bd689189287.tar.gz
tor-40199b180e53aa36477c75782be51bd689189287.zip
Remove read_all and write_all
These had become wrappers around their fd and socket variants; there were only a few users of the original functions still remaining.
Diffstat (limited to 'src/tools/tor-gencert.c')
-rw-r--r--src/tools/tor-gencert.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c
index 2fda1cd8f8..dd2a3ea630 100644
--- a/src/tools/tor-gencert.c
+++ b/src/tools/tor-gencert.c
@@ -84,7 +84,7 @@ load_passphrase(void)
char *cp;
char buf[1024]; /* "Ought to be enough for anybody." */
memset(buf, 0, sizeof(buf)); /* should be needless */
- ssize_t n = read_all(passphrase_fd, buf, sizeof(buf), 0);
+ ssize_t n = read_all_from_fd(passphrase_fd, buf, sizeof(buf));
if (n < 0) {
log_err(LD_GENERAL, "Couldn't read from passphrase fd: %s",
strerror(errno));
@@ -575,4 +575,3 @@ main(int argc, char **argv)
crypto_global_cleanup();
return r;
}
-