mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-27 07:59:35 +01:00
This is to avoid having two sendme.{c|h} in the repository since the subsystem is implemented in src/core/or/sendme.{c|h}. Fixes #30769 Signed-off-by: David Goulet <dgoulet@torproject.org>
19 lines
472 B
Text
19 lines
472 B
Text
/* This file contains the SENDME cell definition. */
|
|
|
|
/* v1 digest length in bytes. */
|
|
const TRUNNEL_SENDME_V1_DIGEST_LEN = 20;
|
|
|
|
/* SENDME cell declaration. */
|
|
struct sendme_cell {
|
|
/* Version field. */
|
|
u8 version IN [0x00, 0x01];
|
|
|
|
/* Length of data contained in this cell. */
|
|
u16 data_len;
|
|
|
|
/* The data content depends on the version. */
|
|
union data[version] with length data_len {
|
|
0x00: ignore;
|
|
0x01: u8 v1_digest[TRUNNEL_SENDME_V1_DIGEST_LEN];
|
|
};
|
|
}
|