diff options
author | Nick Mathewson <nickm@torproject.org> | 2022-02-17 16:16:15 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2022-02-17 16:16:15 -0500 |
commit | fa940c0d9e30d52b168d0ee64bec08c0a88f4edb (patch) | |
tree | 5cfe4668250b77b250bb3326aab9ac86fd2ece07 | |
parent | 176c9001f962848751bedfff9bade4aa58319714 (diff) | |
download | torspec-fa940c0d9e30d52b168d0ee64bec08c0a88f4edb.tar.gz torspec-fa940c0d9e30d52b168d0ee64bec08c0a88f4edb.zip |
Be explicit about EXT_FIELD_LEN=0
-rw-r--r-- | proposals/332-ntor-v3-with-extra-data.md | 2 | ||||
-rw-r--r-- | rend-spec-v3.txt | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/proposals/332-ntor-v3-with-extra-data.md b/proposals/332-ntor-v3-with-extra-data.md index 8e6dedc..25ae0ba 100644 --- a/proposals/332-ntor-v3-with-extra-data.md +++ b/proposals/332-ntor-v3-with-extra-data.md @@ -343,6 +343,8 @@ server messages. EXT_FIELD_LEN [one byte] EXT_FIELD [EXT_FIELD_LEN bytes] +(`EXT_FIELD_LEN` may be zero, in which case EXT_FIELD is absent.) + All parties MUST reject messages that are not well-formed per the rules above. diff --git a/rend-spec-v3.txt b/rend-spec-v3.txt index 1a0b945..fac1395 100644 --- a/rend-spec-v3.txt +++ b/rend-spec-v3.txt @@ -1550,6 +1550,7 @@ Table of contents: The EXT_FIELD_TYPE, EXT_FIELD_LEN, EXT_FIELD entries are reserved for extensions to the introduction protocol. Extensions with unrecognized EXT_FIELD_TYPE values must be ignored. + (`EXT_FIELD_LEN` may be zero, in which case EXT_FIELD is absent.) Unless otherwise specified in the documentation for an extension type: * Each extension type SHOULD be sent only once in a message. |