Commit Graph

24 Commits

Author SHA1 Message Date
John Brooks cc50e0dfe9 Fix buffering in version negotiation
The service-side version negotiation had a buffer overread that would
cause remotely triggerable panic.

Refactor that code to resolve that issue, follow the spec more exactly,
and avoid reading more data from the socket than is used for version
negotiation, in case clients write optimistically.
2016-10-02 17:49:12 -07:00
John Brooks 1c317fc186 Add OnDisconnect event 2016-10-02 17:49:12 -07:00
John Brooks 733e00d6f9 Set OpenConnection.OtherHostname after successful auth proof 2016-10-02 17:49:12 -07:00
John Brooks f6d6991f46 Add methods to run protocol over external sockets & listeners
The ServeListener and ConnectOpen methods take an active Listener or
Conn respectively, instead of creating their own.
2016-10-02 17:49:12 -07:00
Sarah Jamie Lewis bfe5b74364 Refactor GoRicochet
* New Service Interface
* Server functionality
* 90% Code Coverage
* Regression Testing of Protocol Compliance
2016-07-02 18:52:28 -07:00
Sarah Jamie Lewis 93754f2916 Refactor to a move event-driven library - incomplete 2016-02-28 16:18:25 -08:00
Sarah Jamie Lewis 5b013a76c3 Update README.md 2016-02-27 19:42:23 -08:00
Sarah Jamie Lewis 7837ad12ab Adding coverage stats to travis output 2016-02-27 19:28:54 -08:00
Sarah Jamie Lewis ad69913be9 Formatting 2016-02-27 19:26:43 -08:00
Sarah Jamie Lewis a411fb8695 More consistent interfaces, better test coverage 2016-02-27 19:24:50 -08:00
Sarah Jamie Lewis 2353fc41e2 Refactor of APIs to make testing easier.
Also travis.ci integration
2016-02-27 16:20:40 -08:00
Sarah Jamie Lewis 91036c918d Fixing up some error handling 2016-01-05 20:42:49 -08:00
Sarah Jamie Lewis 04f99b298f Cleaning up error handling
Getting rid of lots of FATALs, now they can be handled by the calling
function.
2016-01-04 19:53:10 -08:00
Sarah Jamie Lewis 97f5982754 Adding ability to check contact is known 2016-01-03 15:33:10 -08:00
Sarah Jamie Lewis f684fd8694 Fleshing out error cases 2016-01-02 00:47:32 -08:00
Sarah Jamie Lewis 3469935bcb Adding examples 2016-01-01 18:08:28 -08:00
Sarah Jamie Lewis 64d08bdff0 Refactoring to more easily adapt to multiple channels
Also adding chat message support.
2016-01-01 17:44:14 -08:00
Sarah Jamie Lewis 2d93acf065 Add the ability to turn on/off debug logging 2015-10-15 23:27:16 -07:00
Sarah Jamie Lewis 4ff30ee723 Removing Panics 2015-10-15 23:16:37 -07:00
Sarah Jamie Lewis 42f64e94df Adding Hidden Service Resolution
New option to use either hidden service address or localhost
address for who to connect to.
2015-10-15 23:12:12 -07:00
Sarah Jamie Lewis 1d50af7c5f Update README.md 2015-10-12 16:06:39 -07:00
Sarah Jamie Lewis 38bb90b6b5 Adding capability to OpenChannel and SendMessage 2015-10-12 16:04:18 -07:00
Sarah Jamie Lewis f58b282005 Create LICENSE 2015-10-10 21:38:58 -07:00
Sarah Jamie Lewis dba6ae8097 Initial Commit
This commit provides connection, authentication and the
start of contact requests.
2015-10-10 21:33:07 -07:00