Massive cleanup/code reorg.
* Changed obfs4proxy to be more like obfsproxy in terms of design, including being an easy framework for developing new TCP/IP style pluggable transports. * Added support for also acting as an obfs2/obfs3 client or bridge as a transition measure (and because the code itself is trivial). * Massively cleaned up the obfs4 and related code to be easier to read, and more idiomatic Go-like in style. * To ease deployment, obfs4proxy will now autogenerate the node-id, curve25519 keypair, and drbg seed if none are specified, and save them to a JSON file in the pt_state directory (Fixes Tor bug #12605).
Showing
- README.md 3 additions, 20 deletionsREADME.md
- common/csrand/csrand.go 10 additions, 11 deletionscommon/csrand/csrand.go
- common/drbg/hash_drbg.go 11 additions, 9 deletionscommon/drbg/hash_drbg.go
- common/ntor/ntor.go 2 additions, 7 deletionscommon/ntor/ntor.go
- common/ntor/ntor_test.go 0 additions, 2 deletionscommon/ntor/ntor_test.go
- common/probdist/weighted_dist.go 32 additions, 24 deletionscommon/probdist/weighted_dist.go
- common/probdist/weighted_dist_test.go 4 additions, 6 deletionscommon/probdist/weighted_dist_test.go
- common/replayfilter/replay_filter.go 147 additions, 0 deletionscommon/replayfilter/replay_filter.go
- common/replayfilter/replay_filter_test.go 16 additions, 13 deletionscommon/replayfilter/replay_filter_test.go
- common/uniformdh/uniformdh.go 183 additions, 0 deletionscommon/uniformdh/uniformdh.go
- common/uniformdh/uniformdh_test.go 220 additions, 0 deletionscommon/uniformdh/uniformdh_test.go
- obfs4.go 0 additions, 758 deletionsobfs4.go
- obfs4proxy/obfs4proxy.go 250 additions, 303 deletionsobfs4proxy/obfs4proxy.go
- obfs4proxy/proxy_http.go 0 additions, 3 deletionsobfs4proxy/proxy_http.go
- obfs4proxy/proxy_socks4.go 0 additions, 2 deletionsobfs4proxy/proxy_socks4.go
- obfs4proxy/pt_extras.go 11 additions, 12 deletionsobfs4proxy/pt_extras.go
- transports/base/base.go 88 additions, 0 deletionstransports/base/base.go
- transports/obfs2/obfs2.go 367 additions, 0 deletionstransports/obfs2/obfs2.go
- transports/obfs3/obfs3.go 358 additions, 0 deletionstransports/obfs3/obfs3.go
- transports/obfs4/framing/framing.go 4 additions, 6 deletionstransports/obfs4/framing/framing.go
Loading
Please register or sign in to comment