summaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-06-29 12:00:41 -0400
committerMicah Elizabeth Scott <beth@torproject.org>2023-05-10 07:37:11 -0700
commit35227a7a15dd1ff2e993c21b2a5da8d6498c0a3e (patch)
treeb1235193545a0efa2756dcc6f31e4899e7f933e2 /src/feature
parent4eb783e97b20c830a1a4dff91cef13bcfd4f713f (diff)
downloadtor-35227a7a15dd1ff2e993c21b2a5da8d6498c0a3e.tar.gz
tor-35227a7a15dd1ff2e993c21b2a5da8d6498c0a3e.zip
trunnel: Centralize the INTRO1 extension type
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/hs/hs_cell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/hs/hs_cell.c b/src/feature/hs/hs_cell.c
index 004a7fcbe1..ab9283dc1b 100644
--- a/src/feature/hs/hs_cell.c
+++ b/src/feature/hs/hs_cell.c
@@ -457,7 +457,7 @@ build_introduce_cc_extension(trn_extension_t *extensions)
/* Build CC request extension. */
field = trn_extension_field_new();
trn_extension_field_set_field_type(field,
- TRUNNEL_EXT_TYPE_CC_FIELD_REQUEST);
+ TRUNNEL_EXT_TYPE_CC_REQUEST);
/* No payload indicating a request to use congestion control. */
trn_extension_field_set_field_len(field, 0);
@@ -933,7 +933,7 @@ parse_introduce_cell_extension(const hs_service_t *service,
tor_assert(field);
switch (trn_extension_field_get_field_type(field)) {
- case TRUNNEL_EXT_TYPE_CC_FIELD_REQUEST:
+ case TRUNNEL_EXT_TYPE_CC_REQUEST:
/* CC requests, enable it. */
data->rdv_data.cc_enabled = 1;
data->pv.protocols_known = 1;