diff options
author | teor <teor@torproject.org> | 2019-04-05 15:06:30 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-04-05 15:17:19 +1000 |
commit | e3124fef54f90828f7b06c41fd4e39ef7778f2e3 (patch) | |
tree | 505ce8230ab0e09ecc02dc35b0af8c445b502e61 /src/test/test_crypto.c | |
parent | 7d513a5d5541d17c4e9622a9af76303042fd380b (diff) | |
download | tor-e3124fef54f90828f7b06c41fd4e39ef7778f2e3.tar.gz tor-e3124fef54f90828f7b06c41fd4e39ef7778f2e3.zip |
crypto_format: Remove the return value from curve25519_public_to_base64()
And fix the documentation on the function: it does produce trailing
"="s as padding.
Also remove all checks for the return value, which were redundant anyway,
because the function never failed.
Part of 29660.
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 fb8046fd22..5f53ba688e 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -2075,7 +2075,7 @@ test_crypto_curve25519_encode(void *arg) curve25519_secret_key_generate(&seckey, 0); curve25519_public_key_generate(&key1, &seckey); - tt_int_op(0, OP_EQ, curve25519_public_to_base64(buf, &key1)); + curve25519_public_to_base64(buf, &key1); tt_int_op(CURVE25519_BASE64_PADDED_LEN, OP_EQ, strlen(buf)); tt_int_op(0, OP_EQ, curve25519_public_from_base64(&key2, buf)); |