Ian Jackson
d7602c5be4
hsclient: Use a generic to provide a mock for connect()
...
This will allow us to test state.rs.
2023-03-01 16:20:16 +00:00
Ian Jackson
feab6faa9e
tor-circmgr: Provide testing feature and TestConfig
...
Like the similar thing in tor-guardmgr.
2023-03-01 16:20:16 +00:00
Ian Jackson
9ebe22756e
hsclient: Apply standard lint block
2023-03-01 16:20:16 +00:00
Ian Jackson
ff1be04012
hsclient: Move dead code allows to specific locations
2023-03-01 16:20:16 +00:00
Ian Jackson
b430c65ddb
hsclient: Add vacuous comments as demanded by clippy
2023-03-01 16:20:16 +00:00
Ian Jackson
bac3c4a9a4
hsclient state: Bind a variable to stop rustfmt doing a terrible thing
2023-03-01 16:20:16 +00:00
Ian Jackson
76a160d5a7
hsclient: Provide a constructor for HsClientConnector
2023-03-01 16:20:16 +00:00
Ian Jackson
e8b5195281
hsclient: Implement connection attempt tracking state machine
...
This compiles, but it cannot work yet. Nor can it conveniently be tested.
2023-03-01 16:20:16 +00:00
Ian Jackson
4ec9ec92bc
HS secret keys: Move aggregate/config to tor-hsclient
...
Provide a more cookied "secret keys for use to connecting to a
particular HS" type, with a builder.
This wants to use config stuff, so oughtn't to be in tor-*crypto.
The individual types remain there.
2023-03-01 16:19:31 +00:00
Ian Jackson
891782122d
hsclient API: Remove notion of ambient keys fromk this layer
2023-03-01 16:18:09 +00:00
Ian Jackson
a45acb3905
HS API: Remove HS client keys from circmgr API
...
*If* we're going to retain any HS knowledge in circmgr, it definitely
doesn't need to know about per-operation client secrets.
(Maybe there might be ambient secrets, used for .onion diversion, but
they don't need to be in this API.)
2023-03-01 16:18:09 +00:00
Ian Jackson
feeb38c750
HS planning: Discuss whether to remove all HS code from circmgr
2023-03-01 16:18:09 +00:00
Ian Jackson
06e6e11886
HS planning: Intend for HS connector to do all lifecycle mgmt
...
Otherwise there has to be a state entry in the circmgr *and* a state
entry in the hs connector, for every HS. This division of
responsibilit will be confusing.
The HS code will then be more completely just a layer on top of circmgr.
2023-03-01 16:17:47 +00:00
Nick Mathewson
1251796039
Merge branch 'more_hs_msgs' into 'main'
...
Implement most remaining HS cell types
See merge request tpo/core/arti!1038
2023-03-01 14:50:35 +00:00
Ian Jackson
333ce4118b
Merge branch 'check_env' into 'main'
...
maint: add a full dependency check
See merge request tpo/core/arti!1030
2023-03-01 12:48:20 +00:00
Ian Jackson
22bb5bacc0
Merge branch 'main' into 'main'
...
Use humantime in tor-checkable and tor-guardmgr
Closes #663
See merge request tpo/core/arti!1037
2023-02-28 19:22:53 +00:00
Ian Jackson
7a1c4f54c9
Merge branch 'changes' into 'main'
...
Remove unnecessary warning from arti-hyper/README
See merge request tpo/core/arti!1042
2023-02-28 19:17:02 +00:00
Nick Mathewson
09d601d050
Change several cfgs to refer to new feature names.
2023-02-28 11:15:39 -05:00
Nick Mathewson
0c000a1713
Mark new tests as onion-service-only
2023-02-28 11:15:39 -05:00
Nick Mathewson
ca055d4cb5
tor-cell: Support extensions in INTRODUCE{1,2}
2023-02-28 11:15:39 -05:00
Nick Mathewson
7af2efdb82
tor-cell: Implement IntroduceAck and IntroEstablished
...
These are fairly simple, since the bulk of them is just an extension
list with no supported extensions.
2023-02-28 11:15:39 -05:00
Nick Mathewson
c302246e57
tor-cell: Implement rendezvous1 and rendezvous2.
2023-02-28 11:15:39 -05:00
Nick Mathewson
841905948f
caret: work correctly when there are no defined variants.
2023-02-28 11:08:34 -05:00
Nick Mathewson
d69ed3bc62
hscrypto: Make several types Readable+Writeable
...
Specifically, RendCookie, Subcredential, HsId, and HsBlindId.
2023-02-28 11:08:31 -05:00
Saksham Mittal
e2c870ca1c
Remove unnecessary warning from arti-hyper/README
...
https://gitlab.torproject.org/tpo/core/arti/-/issues/715
has been fixed, so there is no need to display such a warning
2023-02-28 21:23:24 +05:30
Nick Mathewson
886faa96b3
Remove semver.md files now that 1.1.2 is out.
2023-02-28 10:06:41 -05:00
Nick Mathewson
2f0dedd8bb
Merge branch 'bump_versions' into 'main'
...
Bump various versions in preparation for Arti 1.1.2 release.
See merge request tpo/core/arti!1041
2023-02-28 13:25:25 +00:00
Nick Mathewson
e79f2f7803
Merge branch 'changelog' into 'main'
...
CHANGELOG: Fix typo
See merge request tpo/core/arti!1040
2023-02-28 12:25:15 +00:00
Nick Mathewson
2c9f8e3547
Follow-on patchlevel bumps for crates with changed dependencies
...
These crates didn't have any changes until now, when I bumped
the versions of some other crates they depend on:
tor-consdiff
arti-hyper
arti-bench
arti-testing
2023-02-28 07:18:37 -05:00
Nick Mathewson
f41449d0bd
Patchlevel bumps for remaining changed crates.
...
These crates have had small code changes, but no API additions:
tor-config
tor-socksproto
tor-cert
tor-chanmgr
tor-ptmgr
tor-guardmgr
tor-circmgr
tor-dirclient
tor-dirmgr
arti
tor-hsservice
tor-congestion
These crates have had API extensions:
fs-mistrust
tor-llcrypto
tor-bytes
tor-checkable
tor-linkspec
tor-netdoc
tor-persist
arti-client
2023-02-28 07:13:27 -05:00
Nick Mathewson
3e1ae65212
Bump tor-units version for breaking change.
...
(The breaking change was removing `as_days()` from IntegerMinutes.)
We are _not_ calling this a downstream-api breaking change, per
discussion at
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1012?commit_id=bb2ab7c2a3e0994bb438188511688b5b039cae29#note_2876819
2023-02-28 07:10:00 -05:00
Nick Mathewson
4479d52a88
Bump patch-versions for breaking changes in tor-hs{crypto,client}
...
These are API breaks, but the crates themselves are currently
100% experimental, so there's no need to bump the minor versions
according to our semver rules.
2023-02-28 07:06:15 -05:00
Nick Mathewson
3e257a7cb5
Bump minor versions for significant breaking changes.
...
This includes tor-cell, tor-proto, and tor-netdir.
2023-02-28 07:05:15 -05:00
Nick Mathewson
5dbec119cb
Update CHANGELOG to reflect merging !1033 .
2023-02-28 06:56:20 -05:00
Nick Mathewson
fd23b2a56d
Merge branch 'hs-naming' into 'main'
...
Rename onion-* cargo features to hs-* in tor-* crates etc.
Closes #756
See merge request tpo/core/arti!1033
2023-02-28 11:50:51 +00:00
Ian Jackson
533e68373a
CHANGELOG: Fix typo
2023-02-28 11:41:45 +00:00
Nick Mathewson
5d0afff1ce
Mostly wrap up the CHANGELOG for 1.1.2
2023-02-28 06:32:45 -05:00
Ian Jackson
ddd323c6ff
tor-hsservice: Fix an erroneous reference to an hs-client feature
2023-02-28 11:10:17 +00:00
Ian Jackson
f63c7c48af
Rename onion-* cargo features to hs-* in tor-* crates
...
Fixes #756
2023-02-28 11:10:17 +00:00
Nick Mathewson
fcbeceeb61
Merge branch 'cmd_checker' into 'main'
...
tor-proto: Introduce CmdChecker, and use it to enforce correctness for our streams.
Closes #774 and #769
See merge request tpo/core/arti!1026
2023-02-27 16:43:34 +00:00
Nick Mathewson
0fb7e5cd2d
changelog: document another internal API break.
2023-02-27 11:33:31 -05:00
Saksham Mittal
dfb94f510d
Use humantime in tor-guardmgr
2023-02-27 21:24:29 +05:30
Nick Mathewson
f165a32f26
Begin a changelog for 1.1.2
2023-02-27 10:53:53 -05:00
Saksham Mittal
f5f526d1fc
Use humantime in tor-checkable
...
The four values of times taken in a particular test were changed to both
be human readable and have comments explaining their significance (they
are all important moments after the Unix Epoch for freedom)
2023-02-27 21:18:49 +05:30
Ian Jackson
ce2fee9166
Merge branch 'zlib' into 'main'
...
Approve zlib licence
See merge request tpo/core/arti!1035
2023-02-27 13:34:05 +00:00
Nick Mathewson
5629d13f6f
Merge branch 'update_20220227' into 'main'
...
Run cargo update in preparation for Wednesday release
See merge request tpo/core/arti!1036
2023-02-27 13:28:05 +00:00
Nick Mathewson
07473ed1fc
proto: Tweak documentation and names around CmdChecker.
2023-02-27 08:14:15 -05:00
Nick Mathewson
5769cdd9be
Run cargo update in preparation for Wednesday Release
2023-02-27 07:47:11 -05:00
Emil Engler
4f5170e6f0
doc: mention `maint/check_env` in CONTRIBUTING.md
2023-02-24 18:32:06 +01:00
Emil Engler
20e40d79db
maint: remove the dependency check from coverage
...
This commit removes the dependency check introduced by b4b8d040
, because
it's task is now done by the recently added `check_env` script.
2023-02-24 18:32:06 +01:00