<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/err.rs, branch arti-v1.1.6</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.6</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.6'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-06-28T15:28:19Z</updated>
<entry>
<title>tor-netdoc: Test hsdescs inners with a variety of IPT counts</title>
<updated>2023-06-28T15:28:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-06-28T14:38:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=de63a6092d1abca55da65f1c157d1d8aa628d5d0'/>
<id>urn:sha1:de63a6092d1abca55da65f1c157d1d8aa628d5d0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Reject hsdescs with no intro points</title>
<updated>2023-06-28T15:27:05Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-06-28T14:09:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0e2f804d8f9f427bc111df3760339bbba4dd62ad'/>
<id>urn:sha1:0e2f804d8f9f427bc111df3760339bbba4dd62ad</id>
<content type='text'>
None of the existing NetdocErrorKinds seemed right.
</content>
</entry>
<entry>
<title>netdoc: Introduce HsDescError</title>
<updated>2023-06-22T16:43:30Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-06-22T16:43:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dbd255217840573ad1536e1f3ba12de1ee2229bc'/>
<id>urn:sha1:dbd255217840573ad1536e1f3ba12de1ee2229bc</id>
<content type='text'>
For higher-level HsDesc-related functions, this type indicates where
exactly an error occurred.  It lets us distinguish decryption errors
from parsing errors, and attribute responsibility to the hsdir, the
onion service, or the user's lack of encryption.

This lets us remove some just-introduced complexity in
tor-hsclient.
</content>
</entry>
<entry>
<title>Generate correct ErrorKinds for hsdesc decryption failures.</title>
<updated>2023-06-21T14:22:42Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-06-21T14:17:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dd944bc7874f6adc39814ac32e67ba7ccbd15394'/>
<id>urn:sha1:dd944bc7874f6adc39814ac32e67ba7ccbd15394</id>
<content type='text'>
Part of #736
</content>
</entry>
<entry>
<title>netdoc: Rename parse_error_kind() to netdoc_error_kind().</title>
<updated>2023-05-11T17:39:40Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-05-11T17:39:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=04228933730a0727ea75e75770eda180191ff93a'/>
<id>urn:sha1:04228933730a0727ea75e75770eda180191ff93a</id>
<content type='text'>
`ParseErrorKind` was renamed to `NetdocErrorKind`, so we need to
rename this acccessor too.

Signed-off-by: Gabriela Moldovan &lt;gabi@torproject.org&gt;
</content>
</entry>
<entry>
<title>netdoc: Remove experimental-api gate from parse_decrypt_validate.</title>
<updated>2023-05-10T14:53:54Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-05-10T14:48:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=410ca23d2d966c3a20586b5d0bb2739e4482a3fe'/>
<id>urn:sha1:410ca23d2d966c3a20586b5d0bb2739e4482a3fe</id>
<content type='text'>
`parse_decrypt_validate` was marked as experimental because it was
unclear if the newly added `BadTimeBound` error kind belongs in
`ParseErrorKind`. However, we have since renamed `ParseErrorKind` to
`NetdocErrorKind` and decided to keep the new variant, so this API
doesn't need to be experimental anymore.

Closes arti #852

Signed-off-by: Gabriela Moldovan &lt;gabi@torproject.org&gt;
</content>
</entry>
<entry>
<title>netdoc: Rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`.</title>
<updated>2023-05-10T14:52:28Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-05-10T14:40:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=099b2315b015b96cd8163a364f92810ea4982cfa'/>
<id>urn:sha1:099b2315b015b96cd8163a364f92810ea4982cfa</id>
<content type='text'>
`ParseErrorSource` was originally meant to represent a parsing error,
this enum has since gained some variants that aren't really parsing
related (`Signature`, `CertSignature`, `UntimelyDescriptor`).

Since this error type is now used for general-purpose netdoc errors,
let's rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`.

Signed-off-by: Gabriela Moldovan &lt;gabi@torproject.org&gt;
</content>
</entry>
<entry>
<title>netdoc: Mark parse_decrypt_validate as experimental.</title>
<updated>2023-05-02T16:18:53Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-05-02T16:18:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dfc22beddf29c000fbc2de5b17b2620497c53209'/>
<id>urn:sha1:dfc22beddf29c000fbc2de5b17b2620497c53209</id>
<content type='text'>
Signed-off-by: Gabriela Moldovan &lt;gabi@torproject.org&gt;
</content>
</entry>
<entry>
<title>netdoc: Add a convenience method for HS descriptor parsing.</title>
<updated>2023-04-25T17:15:53Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-04-25T14:52:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8f4e87692409783a242ac5e860627e75d1f63e37'/>
<id>urn:sha1:8f4e87692409783a242ac5e860627e75d1f63e37</id>
<content type='text'>
This adds the `HsDesc::parse_decrypt_validate` method, which parses,
decrypts, and validates HS descriptors.

Closes #809

Signed-off-by: Gabriela Moldovan &lt;gabi@torproject.org&gt;
</content>
</entry>
<entry>
<title>Replace `Option&lt;Pos&gt;` with `Pos` in `ParseError`.</title>
<updated>2022-11-15T21:58:23Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-15T21:58:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=39615516fd30f5aa8da6ece97b6c5a0fdb9d8f9e'/>
<id>urn:sha1:39615516fd30f5aa8da6ece97b6c5a0fdb9d8f9e</id>
<content type='text'>
We already have `Pos::Unknown` for an error at an unknown
location and `Pos::None` for an error where no location is
sensible. There's no reason to have an additional `Option` here.

Additionally, the use of `Option` gave us a bug where our old
`ParseError::at_pos()` method didn't actually set the position
unless the position was already set.  That's not what we want!

Fixes #640.

Finally, we have to fix a test that was a bit broken because it was
working around #640.
</content>
</entry>
</feed>
