diff options
author | teor <teor@torproject.org> | 2019-04-05 15:02:43 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-04-05 15:17:19 +1000 |
commit | 7d513a5d5541d17c4e9622a9af76303042fd380b (patch) | |
tree | c3aaf4b1bc230da587c1b23bb025b56fc3e78ad9 /src/test/test_hs_control.c | |
parent | abaed046a6f0f6f6fea5eaf3631b10a514e962e9 (diff) | |
download | tor-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_control.c')
-rw-r--r-- | src/test/test_hs_control.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test_hs_control.c b/src/test/test_hs_control.c index 481ef1eb39..7cedc987bb 100644 --- a/src/test/test_hs_control.c +++ b/src/test/test_hs_control.c @@ -107,8 +107,7 @@ test_hs_desc_event(void *arg) memset(&blinded_pk, 'B', sizeof(blinded_pk)); memset(&hsdir_rs, 0, sizeof(hsdir_rs)); memcpy(hsdir_rs.identity_digest, HSDIR_EXIST_ID, DIGEST_LEN); - ret = ed25519_public_to_base64(base64_blinded_pk, &blinded_pk); - tt_int_op(ret, OP_EQ, 0); + ed25519_public_to_base64(base64_blinded_pk, &blinded_pk); memcpy(&ident.identity_pk, &identity_kp.pubkey, sizeof(ed25519_public_key_t)); memcpy(&ident.blinded_pk, &blinded_pk, sizeof(blinded_pk)); |