diff options
author | teor <teor@torproject.org> | 2019-04-05 15:08:54 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-04-05 15:17:19 +1000 |
commit | ce5e38642d1f5e48a7e5c98422e0fa23145f0363 (patch) | |
tree | ae91e9e569da5507cf407acb9c43306240881ce7 /src/feature/hs | |
parent | e3124fef54f90828f7b06c41fd4e39ef7778f2e3 (diff) | |
download | tor-ce5e38642d1f5e48a7e5c98422e0fa23145f0363.tar.gz tor-ce5e38642d1f5e48a7e5c98422e0fa23145f0363.zip |
crypto_format: Remove the return value from ed25519_signature_to_base64()
Also remove all checks for the return value, which were redundant anyway,
because the function never failed.
Part of 29660.
Diffstat (limited to 'src/feature/hs')
-rw-r--r-- | src/feature/hs/hs_descriptor.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/feature/hs/hs_descriptor.c b/src/feature/hs/hs_descriptor.c index 2793597028..b526da6661 100644 --- a/src/feature/hs/hs_descriptor.c +++ b/src/feature/hs/hs_descriptor.c @@ -1082,11 +1082,7 @@ desc_encode_v3(const hs_descriptor_t *desc, tor_free(encoded_str); goto err; } - if (ed25519_signature_to_base64(ed_sig_b64, &sig) < 0) { - log_warn(LD_BUG, "Can't base64 encode descriptor signature!"); - tor_free(encoded_str); - goto err; - } + ed25519_signature_to_base64(ed_sig_b64, &sig); /* Create the signature line. */ smartlist_add_asprintf(lines, "%s %s", str_signature, ed_sig_b64); } |