Commit Graph

52 Commits

Author SHA1 Message Date
Sarah Jamie Lewis 9beff8a10a Require error to construct an ErrorACN 2023-05-29 10:22:36 -07:00
Sarah Jamie Lewis 380fd1834a Fix errorAcn reference issues + add support for Tor specific shared library path 2023-05-24 11:11:18 -07:00
Dan Ballard 2f3860eb89 drone use go 1.19.1 2022-10-08 15:26:39 -07:00
Dan Ballard bbe4198a41 add TakeOwnership call once tor started to help ensure tor ends; add support for __OwningControllerProcess 2022-10-08 11:58:42 -07:00
Dan Ballard 1f52dc7138 enable logging support for torrc builder 2022-09-21 13:06:15 -07:00
Dan Ballard 789de52589 store bootsrap version, make available; fix tor version parsing for double digit versions 2022-08-28 19:50:01 -07:00
Sarah Jamie Lewis 478df967fc Upgrade Dependencies. Prevent socks default behaviour in bine 2022-08-28 18:57:45 -07:00
Dan Ballard 6122ad437d Get x Callbacks 2022-08-08 12:24:16 -07:00
Dan Ballard 9a134810c3 remove unused function 2022-08-03 19:21:03 -07:00
Dan Ballard 9992edadba add testing to versionCallback, fix versionCallback 2022-08-02 19:45:44 -07:00
Dan Ballard 9d4e1e5ca5 add versionCallback and use on reboot tor; change start preference for bundled tor; new go 1.17 build directives 2022-08-01 10:50:55 -07:00
Sarah Jamie Lewis cc924a476e Make regexp global static 2022-04-19 16:42:23 -07:00
Sarah Jamie Lewis 8d0ed17e7f Fix several small goroutine leaks around restart 2022-04-18 14:59:37 -07:00
Sarah Jamie Lewis 586cc261a3 path -> filepath 2022-01-18 13:00:41 -08:00
Sarah Jamie Lewis 8ad13a6b36 createFromExisting does not delete data dir on close 2022-01-18 12:43:47 -08:00
Sarah Jamie Lewis 1a402de50d Fixup Testing Directories 2022-01-17 16:03:06 -08:00
Sarah Jamie Lewis 6d5d067d70 Move DataDir Caching Responsibility to Caller to allow Cached Consensus 2022-01-17 15:55:10 -08:00
Sarah Jamie Lewis dfae5b9261 Spelling 2022-01-17 12:06:36 -08:00
Sarah Jamie Lewis 4353143ae4 Assert CInfo is not empty in Test 2022-01-13 13:51:58 -08:00
Sarah Jamie Lewis 0c745e7691 Adding Tests for GetInfo 2022-01-13 13:51:58 -08:00
Sarah Jamie Lewis f82cf26731 Allow Querying of ACN Info - Support Getting Circuit Stats 2022-01-13 13:51:58 -08:00
Sarah Jamie Lewis 023d1a6e5d Avoid deadlock on double close 2022-01-12 12:05:07 -08:00
Sarah Jamie Lewis 35247bd044 Clean up ACN Closing Logic 2022-01-12 11:47:17 -08:00
Sarah Jamie Lewis 384d59e9ef WaitTillBootstrapped can now Error 2022-01-11 15:41:56 -08:00
Sarah Jamie Lewis 9169018529 ProxyACN and ErrorACN for nicer ACN Management 2022-01-11 12:11:45 -08:00
Sarah Jamie Lewis dbc3d675ec Update quality to staticcheck 2022-01-10 12:56:59 -08:00
Sarah Jamie Lewis d3398bd074 Allow Custom Tor Config 2022-01-10 12:53:48 -08:00
Sarah Jamie Lewis b36f6dc33f Format 2021-09-28 14:03:15 -07:00
Sarah Jamie Lewis 8fe2974aaa Go conventions 2021-09-28 14:01:53 -07:00
Sarah Jamie Lewis 6d5accb338 Make IsValidHostname More Robust
IsValidHostname now rejects public keys that are invalid ed25519
curve points in addition to ed25519 points that contain torsion
components (which are defined to be invalid Tor Hostnames).

Note: The lack of these checks previously  would have been unlikely to manifest as an issue further up the
stack because Tor would have prevented Cwtch from connecting to bad curve
points, the Tapir authentication protocol would have failed with invalid curve points,
and the experimental group chats only rely on signatures for voluntary authorship attribution,
rather than e.g. consensus or security.
2021-09-28 14:01:53 -07:00
Dan Ballard 9ab706cf02 clean up Start logs and err 2021-06-24 21:35:33 -07:00
Sarah Jamie Lewis c11e326785 static check 2021-06-09 10:30:08 -07:00
Sarah Jamie Lewis 4e4b39b707 Make access to OnionListenService threadsafe 2021-06-09 10:20:24 -07:00
Sarah Jamie Lewis 4c0148619e Fix nil pointer deref on uncommon tor errors 2021-05-03 10:45:41 -07:00
Sarah Jamie Lewis 38eb603dec Fix Dialer issues on Restart 2021-04-13 14:53:26 -07:00
Sarah Jamie Lewis a40c4b9e1d Fix deadlock when reset occurs during cool-off period 2021-04-13 13:39:33 -07:00
Sarah Jamie Lewis d31f77262b Fix nil pointer to authenticator on restart + simplify 2021-04-08 16:10:25 -07:00
Dan Ballard 540183a881 add GetVersion to acn and torProvider 2020-11-30 18:41:13 -08:00
Dan Ballard 89dff1f5e0 torProvider: now creates new subdir for tor process per run to avoid collisions of zombies; log tor processl bump op.log version 2020-11-17 11:03:51 -08:00
Sarah Jamie Lewis 52048e1686 Fixup error flow 2020-10-21 15:20:15 -07:00
Sarah Jamie Lewis 0b0f65017a Moving to OpenPrivacy Bine / Adding GetPID to ACN 2020-10-15 16:46:45 -07:00
Dan Ballard 604237ea34 Merge pull request 'Better Torrc Builder' (#11) from trunk into master
Reviewed-on: openprivacy/connectivity#11
2020-10-13 12:21:59 -07:00
Sarah Jamie Lewis ba56a6cb48 Better Torrc Builder 2020-10-13 11:44:45 -07:00
Dan Ballard f01a76f337 NoTorrcErr typed error 2020-09-21 16:46:44 -07:00
Sarah Jamie Lewis 3888ece4d3 Kill Tor once the unit tests have finsihed 2020-06-29 14:11:02 -07:00
Sarah Jamie Lewis a8d31e2adb Generate Torrc and Integration test for Launching Tor with Generated Torrc 2020-06-29 13:22:04 -07:00
Sarah Jamie Lewis afda040693 Sketch of Tor Authenticator 2020-06-29 11:45:47 -07:00
Dan Ballard 181478adfb refactor torProvider: merge networkStatus and BootstrapStatus, simplify monitorRestart logic. Catch case due to magic numbers where it was not restarting tor when tor was killed 2020-05-12 14:35:38 -07:00
Dan Ballard 4eedeaa4db add locks to acoid possible race condition using command port 2020-05-08 16:31:01 -07:00
Dan Ballard 35293ea087 torProvider now also consults network-liveness 2020-05-08 14:21:14 -07:00