mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
hs-v3: Re-enable the decoding in the encoding function
Previously, the validation by decoding a created descriptor was disabled because the interface had to be entirely changed and not implemented at the time. This commit re-enabled it because it is now implemented. Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
69fb25b0f6
commit
53dd1699ba
@ -2705,14 +2705,16 @@ hs_desc_encode_descriptor,(const hs_descriptor_t *desc,
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try to decode what we just encoded. Symmetry is nice! */
|
/* Try to decode what we just encoded. Symmetry is nice!, but it is
|
||||||
/* XXX: I need to disable this assertation for now to make the test pass.
|
* symmetric only if the client auth is disabled. That is, the descriptor
|
||||||
* I will enable it again when I finish writing the decoding */
|
* cookie will be NULL. */
|
||||||
/* ret = hs_desc_decode_descriptor(*encoded_out, */
|
if (!descriptor_cookie) {
|
||||||
/* desc->subcredential, NULL); */
|
ret = hs_desc_decode_descriptor(*encoded_out, desc->subcredential,
|
||||||
/* if (BUG(ret < 0)) { */
|
NULL, NULL);
|
||||||
/* goto err; */
|
if (BUG(ret < 0)) {
|
||||||
/* } */
|
goto err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user