tor/src/trunnel
David Goulet 504e05b029 prop289: Use a 20 bytes digest instead of 4
To achieve such, this commit also changes the trunnel declaration to use a
union instead of a seperate object for the v1 data.

A constant is added for the digest length so we can use it within the SENDME
code giving us a single reference.

Part of #26288

Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-04-29 12:17:57 -04:00
..
hs Fix spelling mistakes corresponding to ticket #23650 2018-02-07 10:41:57 -05:00
channelpadding_negotiation.c Re-run trunnel. Cosmetic changes only. 2017-08-24 16:13:01 -04:00
channelpadding_negotiation.h Re-run trunnel. Cosmetic changes only. 2017-08-24 16:13:01 -04:00
channelpadding_negotiation.trunnel Netflow record collapsing defense. 2017-05-08 13:49:21 -04:00
circpad_negotiation.c Add padding negotiation trunnel output. 2019-01-02 15:12:20 +02:00
circpad_negotiation.h Add padding negotiation trunnel output. 2019-01-02 15:12:20 +02:00
circpad_negotiation.trunnel Add padding negotiation trunnel output. 2019-01-02 15:12:20 +02:00
ed25519_cert.c Re-run trunnel. Cosmetic changes only. 2017-08-24 16:13:01 -04:00
ed25519_cert.h Re-run trunnel. Cosmetic changes only. 2017-08-24 16:13:01 -04:00
ed25519_cert.trunnel hs: abolish hs_desc_link_specifier_dup() 2019-03-12 11:09:53 -04:00
include.am prop289: Add SENDME trunnel declaration 2019-04-29 12:17:57 -04:00
link_handshake.c Re-run trunnel. Cosmetic changes only. 2017-08-24 16:13:01 -04:00
link_handshake.h Re-run trunnel. Cosmetic changes only. 2017-08-24 16:13:01 -04:00
link_handshake.trunnel Add trunnel-generated items for link handshake code. 2015-05-28 10:41:49 -04:00
netinfo.c Actually allow unrecognized address types in NETINFO cell 2018-12-18 12:10:08 +02:00
netinfo.h Add trunnel spec and impl for NETINFO cells 2018-10-26 12:58:42 +03:00
netinfo.trunnel Actually allow unrecognized address types in NETINFO cell 2018-12-18 12:10:08 +02:00
pwbox.c Re-run trunnel. Cosmetic changes only. 2017-08-24 16:13:01 -04:00
pwbox.h Re-run trunnel. Cosmetic changes only. 2017-08-24 16:13:01 -04:00
pwbox.trunnel Use trunnel for crypto_pwbox encoding/decoding. 2014-09-25 11:58:14 -04:00
README Mention trunnel in CodingStandards; describe how in trunnel/README 2015-10-14 10:40:27 -04:00
sendme.c prop289: Use a 20 bytes digest instead of 4 2019-04-29 12:17:57 -04:00
sendme.h prop289: Use a 20 bytes digest instead of 4 2019-04-29 12:17:57 -04:00
sendme.trunnel prop289: Use a 20 bytes digest instead of 4 2019-04-29 12:17:57 -04:00
socks5.c Allow socks4_server_reply version to be 0 (for tor-resolve) 2018-12-01 14:31:17 -05:00
socks5.h Remove prop229 stuff from socks5.trunnel 2018-07-12 11:41:44 -04:00
socks5.trunnel Allow socks4_server_reply version to be 0 (for tor-resolve) 2018-12-01 14:31:17 -05:00
trunnel-local.h Rename util_malloc to malloc. 2018-07-10 15:16:57 -04:00

This directory contains code for use with, and code made by, the
automatic code generation tool "Trunnel".

Trunnel generates binary parsers and formatters for simple data
structures. It aims for human-readable, obviously-correct outputs over
maximum efficiency or flexibility.

The .trunnel files are the inputs here; the .c and .h files are the outputs.

To add a new structure:
   - Add a new .trunnel file or expand an existing one to describe the format
     of the structure.
   - Regenerate the .c and .h files.  To do this, you run
     "scripts/codegen/run_trunnel.sh".  You'll need trunnel installed.
   - Add the .trunnel, .c, and .h files to include.am

For the Trunnel source code, and more documentation about using Trunnel,
see https://gitweb.torproject.org/trunnel.git , especially
    https://gitweb.torproject.org/trunnel.git/tree/README
and https://gitweb.torproject.org/trunnel.git/tree/doc/trunnel.md