hs: Get rid of duplicate hs_cell_introd_ack_status_t
commitdcc1d8d15bf11ca1c4e2760bbc47d5fa3df3814d
authorDavid Goulet <dgoulet@torproject.org>
Thu, 9 May 2019 17:01:15 +0000 (9 13:01 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 20 May 2019 12:56:34 +0000 (20 08:56 -0400)
treee7cb11d55a4e1fd38490eca480823c38998dc205
parent590d97bc1065bdb93c70695c91de9c548ef802af
hs: Get rid of duplicate hs_cell_introd_ack_status_t

This enum was the exact same as hs_intro_ack_status_t that was removed at the
previous commit. It was used client side when parsing the INTRODUCE_ACK cell.

Now, the entire code dealing with the INTRODUCE_ACK cell (both sending and
receiving) have been modified to all use the same ABI defined in the trunnel
introduce1 file.

Finally, the client will default to the normal behavior when receiving an
unknown NACK status code which is to note down that we've failed and re-extend
to the next intro point. This way, unknown status code won't trigger a
different behavior client side.

Part of #30454.

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/hs_cell.c
src/or/hs_cell.h
src/or/hs_client.c