diff options
author | David Goulet <dgoulet@torproject.org> | 2018-05-10 09:16:50 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-05-10 09:16:50 -0400 |
commit | 6e99286d45be482effe47feb057948b98495a49f (patch) | |
tree | 5b3a80a3f7c47fbf7a1a8a0f89b611a24fb2aef9 /changes | |
parent | aa08c197034a7dcd061f3c205a29dc1cb09641d3 (diff) | |
download | tor-6e99286d45be482effe47feb057948b98495a49f.tar.gz tor-6e99286d45be482effe47feb057948b98495a49f.zip |
hs-v3: Add an extra white-space when parsing descriptor
The specification describes the signature token to be right after a newline
(\n) then the token "signature" and then a white-space followed by the encoded
signature.
This commit makes sure that when we parse the signature from the descriptor,
we are always looking for that extra white-space at the end of the token.
It will allow us also to support future fields that might start with
"signature".
Fixes #26069
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'changes')
-rw-r--r-- | changes/bug26069 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug26069 b/changes/bug26069 new file mode 100644 index 0000000000..192e97d782 --- /dev/null +++ b/changes/bug26069 @@ -0,0 +1,5 @@ + o Minor bugfixes (hidden service v3): + - When parsing the descriptor signature, look for the token plus an extra + white-space at the end. This is more correct but also will allow us to + support new fields that might start with "signature". Fixes bug 26069; + bugfix on 0.3.0.1-alpha. |