aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_cache.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_hs_cache.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_hs_cache.c')
-rw-r--r--src/test/test_hs_cache.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test_hs_cache.c b/src/test/test_hs_cache.c
index 9182829116..48e8d3b8c4 100644
--- a/src/test/test_hs_cache.c
+++ b/src/test/test_hs_cache.c
@@ -238,9 +238,7 @@ helper_fetch_desc_from_hsdir(const ed25519_public_key_t *blinded_key)
{
char hsdir_cache_key[ED25519_BASE64_LEN+1];
- retval = ed25519_public_to_base64(hsdir_cache_key,
- blinded_key);
- tt_int_op(retval, OP_EQ, 0);
+ ed25519_public_to_base64(hsdir_cache_key, blinded_key);
tor_asprintf(&hsdir_query_str, GET("/tor/hs/3/%s"), hsdir_cache_key);
}