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_crypto.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_crypto.c')
-rw-r--r-- | src/test/test_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c index a5c17b3e6a..fb8046fd22 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -2455,7 +2455,7 @@ test_crypto_ed25519_encode(void *arg) /* Test roundtrip. */ tt_int_op(0, OP_EQ, ed25519_keypair_generate(&kp, 0)); - tt_int_op(0, OP_EQ, ed25519_public_to_base64(buf, &kp.pubkey)); + ed25519_public_to_base64(buf, &kp.pubkey); tt_int_op(ED25519_BASE64_LEN, OP_EQ, strlen(buf)); tt_int_op(0, OP_EQ, ed25519_public_from_base64(&pk, buf)); tt_mem_op(kp.pubkey.pubkey, OP_EQ, pk.pubkey, ED25519_PUBKEY_LEN); |