<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/channel/handshake.rs, branch arti-v1.1.0</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.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-10-25T11:53:57Z</updated>
<entry>
<title>Merge branch 'rename_for_to_from' into 'main'</title>
<updated>2022-10-25T11:53:57Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-25T11:53:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=49f05219040cf29e4a6c5ec444267daa075f20fd'/>
<id>urn:sha1:49f05219040cf29e4a6c5ec444267daa075f20fd</id>
<content type='text'>
tor-cell: Rename for_client and for_relay

See merge request tpo/core/arti!793</content>
</entry>
<entry>
<title>linkspec: Remove now-useless declared_peer_addr</title>
<updated>2022-10-24T12:59:12Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-20T15:16:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1195c40a99502c2463ac622acbae00a4c6ae1eeb'/>
<id>urn:sha1:1195c40a99502c2463ac622acbae00a4c6ae1eeb</id>
<content type='text'>
The singleton variation here is almost never what we want.
</content>
</entry>
<entry>
<title>tor-cell: Rename for_client and for_relay</title>
<updated>2022-10-21T11:21:52Z</updated>
<author>
<name>Emil Engler</name>
<email>me@emilengler.com</email>
</author>
<published>2022-10-21T11:20:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e5429a28918840d43b5c7ec25d9440d3ba78d8d3'/>
<id>urn:sha1:e5429a28918840d43b5c7ec25d9440d3ba78d8d3</id>
<content type='text'>
This commit renames the for_client and for_relay functions to
from_client and from_relay respectively, in order to indicate their
origin, as the term "for" is more likely to indicate a destination,
which is not true in that situation.
</content>
</entry>
<entry>
<title>Change multiplicity of ChannelMethod and addresses</title>
<updated>2022-10-11T12:53:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-06T20:35:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=74d4c73d090f28ba5a8dca4fda3f170a36c0fe16'/>
<id>urn:sha1:74d4c73d090f28ba5a8dca4fda3f170a36c0fe16</id>
<content type='text'>
Now each `ChanTarget` has at most one `ChannelMethod`, and only
`Direct` `ChannelMethods` can have multiple addresses.

Closes #600.
</content>
</entry>
<entry>
<title>Clarify limits on socket address from ChannelMethod</title>
<updated>2022-10-06T19:13:05Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-06T17:11:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=22b14066f0a0a0e4794b0a381c9c0c5b7efd6faf'/>
<id>urn:sha1:22b14066f0a0a0e4794b0a381c9c0c5b7efd6faf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-linkspec: Remove the old OwnedFoo::new() functions</title>
<updated>2022-10-06T19:13:05Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-05T18:08:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=299ebd729d697cde69dc720e358abf933af2a054'/>
<id>urn:sha1:299ebd729d697cde69dc720e358abf933af2a054</id>
<content type='text'>
These are now builders.
</content>
</entry>
<entry>
<title>tor-proto: Preserve the ChannelMethod, not the SocketAddr</title>
<updated>2022-10-06T19:13:05Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-05T17:31:44Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=34c9178feb45db1e71aaa12ccd271f35b4a97fe1'/>
<id>urn:sha1:34c9178feb45db1e71aaa12ccd271f35b4a97fe1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>channel padding: Properly advertise link protocol 5</title>
<updated>2022-08-17T09:54:41Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-08-16T17:53:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=08a7257fe902fe6feb3b0c8426cbc824ba68c7c8'/>
<id>urn:sha1:08a7257fe902fe6feb3b0c8426cbc824ba68c7c8</id>
<content type='text'>
We already actually send and negotiate the padding, since !657,
but we ought to negotiate a protocol version where that's not a
violation!

As per
  https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/657#note_2828354
</content>
</entry>
<entry>
<title>tor-proto: Unify the check_match code in channel and handshake</title>
<updated>2022-08-10T14:39:47Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-08-09T20:19:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=19079c5a7d2e2874d92acf057f9190625b9fbf65'/>
<id>urn:sha1:19079c5a7d2e2874d92acf057f9190625b9fbf65</id>
<content type='text'>
This had to become a new internal function, since at the point that
the handshake needs this code, it does not yet have a Channel to use.

This change made the error messages in the handshake code more
informative: and now they require a regex to check.  Later, we might
want to defer formatting these strings, but I don't think we need
to do it now.
</content>
</entry>
<entry>
<title>Final (?) API revisions for tor-linkspec</title>
<updated>2022-08-10T14:39:37Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-08-05T15:47:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2d4507ff35f8e8cf874c81d3754804b2c20f31aa'/>
<id>urn:sha1:2d4507ff35f8e8cf874c81d3754804b2c20f31aa</id>
<content type='text'>
With this change, each individual identity type becomes optional.
The functions that expose them unconditionally are now in a "legacy"
trait that only some downstream types are expected to implement.

There are new convenience APIs in HasRelayIds:
  * to return Option&lt;&amp;keytype&gt;,
  * to see if one identity-set contains another.

This commit will break several downstream crates!  For the
reviewer's convenience, I will put the fixes for those crates into a
series of squash! commits on this one.

tor-netdir
----------

Revise tor-netdir to accept optional identities.  This required some
caveats and workarounds about the cases where we have to deal with a
key type that the tor-netdir code does not currently recognize at
all.  If we start to add more identity types in the future, we may
well want more internal indices in this code.

tor-proto
---------

In order to make tor-proto support optional identities, there were
fewer changes than I thought.  Some "check" functions needed to start
looking at "all the ids we want" rather than at "the two known IDs";
they also needed to accommodate that case where we don't have an ID
that we demand.

This change will also help with bridges, since we want to be able to
connect to a bridge without knowing all of its IDs up front.

The protocol currently _requires_ the two current ID types in some
places. To deal with that, I added a new `MissingId` error.

I also removed a couple of unconditional identity accessors for
chanmgr; code should use `target().identity(...)` instead.

tor-chanmgr
-----------

This is an incomplete conversion: it does not at all handle channel
targets without Ed25519 identities yet.  It still uses those
identities to index its internal map from identity to channel; but
it gives a new `MissingId` error type if it's given a channel target
that doesn't have one.

We'll want to revise the map type again down the road when we
implement bridges, but I'd rather not step on the channel-padding
work in progress right now.

tor-guardmgr
------------

This change is mostly a matter of constructing owned identity types
more sensibly, rather than unwrapping them directly.

There are some places marked with TODOs where we still depend on
particular identity types, because of how the directory protocol
works.  This will need revisiting when we add bridge support here.

tor-circmgr
-----------

These changes are just relatively simple API changes in the tests.
</content>
</entry>
</feed>
