aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerkeys.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/or/routerkeys.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/or/routerkeys.c')
-rw-r--r--src/or/routerkeys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/routerkeys.c b/src/or/routerkeys.c
index 9f4def0e6a..1e0a6fc65e 100644
--- a/src/or/routerkeys.c
+++ b/src/or/routerkeys.c
@@ -44,7 +44,7 @@ do_getpass(const char *prompt, char *buf, size_t buflen,
if (options->use_keygen_passphrase_fd) {
twice = 0;
fd = options->keygen_passphrase_fd;
- length = read_all(fd, buf, buflen-1, 0);
+ length = read_all_from_fd(fd, buf, buflen-1);
if (length >= 0)
buf[length] = 0;
goto done_reading;
@@ -1403,4 +1403,3 @@ routerkeys_free_all(void)
rsa_ed_crosscert = NULL; // redundant
rsa_ed_crosscert_len = 0;
}
-