aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-04-05 15:02:43 +1000
committerteor <teor@torproject.org>2019-04-05 15:17:19 +1000
commit7d513a5d5541d17c4e9622a9af76303042fd380b (patch)
treec3aaf4b1bc230da587c1b23bb025b56fc3e78ad9 /src/test/test_dir.c
parentabaed046a6f0f6f6fea5eaf3631b10a514e962e9 (diff)
downloadtor-7d513a5d5541d17c4e9622a9af76303042fd380b.tar.gz
tor-7d513a5d5541d17c4e9622a9af76303042fd380b.zip
crypto_format: Remove the return values from digest256_to_base64()
... and ed25519_public_to_base64(). Also remove all checks for the return values, which were redundant anyway, because the functions never failed. Part of 29960.
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r--src/test/test_dir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 6518977b6f..17d6db1e4d 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -995,9 +995,7 @@ test_dir_formats_rsa_ed25519(void *arg)
smartlist_add_strdup(chunks, "master-key-ed25519 ");
{
char k[ED25519_BASE64_LEN+1];
- tt_int_op(ed25519_public_to_base64(k,
- &r2->cache_info.signing_key_cert->signing_key),
- OP_GE, 0);
+ ed25519_public_to_base64(k, &r2->cache_info.signing_key_cert->signing_key);
smartlist_add_strdup(chunks, k);
smartlist_add_strdup(chunks, "\n");
}