<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-socksproto/src/handshake.rs, branch derive-traits</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=derive-traits</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=derive-traits'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-02-14T20:57:24Z</updated>
<entry>
<title>Merge branch 'error-socksproto-autoconvert' into 'main'</title>
<updated>2022-02-14T20:57:24Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-14T20:57:24Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e80d472beb3de3160a1cda2edcae210532ff4f15'/>
<id>urn:sha1:e80d472beb3de3160a1cda2edcae210532ff4f15</id>
<content type='text'>
Provide, and use From impl for InternalError

See merge request tpo/core/arti!315</content>
</entry>
<entry>
<title>Run rustfmt.</title>
<updated>2022-02-14T19:47:42Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-14T19:47:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=31075e80467575212c069430d463bc4044585716'/>
<id>urn:sha1:31075e80467575212c069430d463bc4044585716</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Provide, and use From impl for InternalError</title>
<updated>2022-02-14T18:48:35Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-02-14T18:48:35Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4774cbd18d06b2c3d6ece16784275b1d1a435fdc'/>
<id>urn:sha1:4774cbd18d06b2c3d6ece16784275b1d1a435fdc</id>
<content type='text'>
Adding this autoconversion is quite safe since every error generation
site is explicit and has its own context, and we don't really need to
add more.

This simplifies the code and will simplify future work.
</content>
</entry>
<entry>
<title>ErrorKind::NotImplemented: fix two tests</title>
<updated>2022-02-14T17:54:05Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-02-14T17:54:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b74f3a3c100639a1a9844244427b49fe0c0e0542'/>
<id>urn:sha1:b74f3a3c100639a1a9844244427b49fe0c0e0542</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Split up ErrorKind::NoSupport</title>
<updated>2022-02-14T16:06:45Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-02-14T15:58:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=30ebb1358ad4be7b804f9c5824d1a05e853e6f69'/>
<id>urn:sha1:30ebb1358ad4be7b804f9c5824d1a05e853e6f69</id>
<content type='text'>
</content>
</entry>
<entry>
<title>socksproto: Simplify Truncated handling</title>
<updated>2022-02-11T14:36:57Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-11T13:42:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4e8db2b836415571dc6cdf239e2c22a6b16d33ad'/>
<id>urn:sha1:4e8db2b836415571dc6cdf239e2c22a6b16d33ad</id>
<content type='text'>
Refactor the Error type to remove the yucky internal hidden Truncated
variant.  Instead, there's now an embedded tor_bytes::Error value.

If that tor_bytes::Error is Truncated, we bubble it up when we convert our
handshake result to the nested error struct.

Thus there is still (sadly) a variant of tor_socksproto::Error
that shouldn't be exposed to user code.  But refactoring every
inner method under handshake.rs seemed like a bad idea: once we're using
Result&lt;Result&lt;..&gt;&gt;, the ? operator no longer helps us much.
</content>
</entry>
<entry>
<title>Move the Truncated error into tor-errors.</title>
<updated>2022-02-11T14:36:57Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-11T13:18:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f62b2600c7a3102ebf827259308f98d1ba72fc3b'/>
<id>urn:sha1:f62b2600c7a3102ebf827259308f98d1ba72fc3b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Try to resolve the "Truncated" error in tor-socksproto</title>
<updated>2022-02-11T14:36:57Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-09T17:18:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=22141d25168c0480e203bee594f77c23ce30922f'/>
<id>urn:sha1:22141d25168c0480e203bee594f77c23ce30922f</id>
<content type='text'>
I'm not in love with this solution; the others just seem a bit ugly
too.
</content>
</entry>
<entry>
<title>tor-socksproto: Implement HasKind</title>
<updated>2022-02-11T14:36:57Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-09T16:36:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f6189e174bd1738dfbf8e667977ca67908647f47'/>
<id>urn:sha1:f6189e174bd1738dfbf8e667977ca67908647f47</id>
<content type='text'>
(This error isn't yet wrapped in TorError, but it will be eventually
when we implement socks proxy and PT support.)
</content>
</entry>
<entry>
<title>Idle hacking to get tor-socksproto line coverage over 90%</title>
<updated>2021-12-02T23:52:58Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-12-02T23:52:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2ee620ec46e79965acdae40636d5941bbeb7beda'/>
<id>urn:sha1:2ee620ec46e79965acdae40636d5941bbeb7beda</id>
<content type='text'>
This was just a matter of adding a call to one function.
</content>
</entry>
</feed>
