Commit Graph

71 Commits (15f343db318f2252ddcc43cd91060931bf5b01c4)

Author SHA1 Message Date
Andy Wang 97858197cd Move common types to its own package 4 years ago
Andy Wang 86095ba5e6 Refactor out Dialer 4 years ago
Andy Wang 2400a33818 Remove extra imports 4 years ago
Andy Wang 7e9fe952aa Move code around for clarity 4 years ago
Andy Wang 7bfae8accd Refactor client side transport (breaks server) 4 years ago
Andy Wang dc2b1124cb move function out of util 4 years ago
Andy Wang 545164a300 Make send/receive buffer sizes configurable 4 years ago
Andy Wang 01e5d15d20 Code cleanup 4 years ago
Andy Wang 963dae829d Fix tests 4 years ago
Andy Wang c1f3408c2c Make key lengths explicit 4 years ago
Andy Wang 903a413afc Update test 4 years ago
Andy Wang 25e41d0941 Allow UDP option to be set in both commandline and json 4 years ago
Andy Wang a163f066a6 Refactor client config 4 years ago
Andy Wang 8d84ebd145 Code styles 4 years ago
notsure2 2de034ec92 Make keepalive optional on client -> server and server -> proxy connections. Use KeepAlive value in config (seconds). 4 years ago
Andy Wang 2327420f75 Allow remote host to be set in the client config file 4 years ago
beans 23082aff4f Allow RemotePort to be optionally set in JSON. If it's not set in JSON, Cloak falls back to SS_REMOTE_PORT in SS mode, or the -p argument in standalone 4 years ago
Andy Wang 517a6d6e57 Handle error and retry for Crypto.rand 4 years ago
Andy Wang bc5ce842a0 Refactor makeAuthenticationPayload to allow easier tests 4 years ago
Andy Wang abc39e4e90 Refactor authentication data representations 5 years ago
Andy Wang f90ad52455 Add default stream timeout value to client 5 years ago
Andy Wang 65553f4ec4 Remove redundant base64 decoding 5 years ago
Andy Wang eec295a00e Remove unnecessary pointer value 5 years ago
Andy Wang 98b77afb91 websocket over TLS 5 years ago
Andy Wang 339b324946 Working direct WebSocket transport 5 years ago
Andy Wang f47f57a59f Direct WebSocket 5 years ago
Andy Wang a3c3c5dc07 Client side plain websocket 5 years ago
Andy Wang 46c02d17f4 Refactor InitState 5 years ago
Andy Wang 87a7684e10 More comments 5 years ago
Andy Wang eabe113547 Add Stream Timeout 5 years ago
Andy Wang 812ca1af99 Unexport some client.State fields 5 years ago
Andy Wang b98a74f49b Refactor client ClientHello composition 5 years ago
Andy Wang e28df86a55 Move Unordered field around 5 years ago
Andy Wang c36ec04ce5 Add unordered mode 5 years ago
Qian Wang f65a46f4a9 Remove unnecessary state variable IsAdmin 5 years ago
Qian Wang ae4fc917b6 Let the server send a mock encrypted certificate after ChangeCipherSuite to imitate real behaviour more closely 5 years ago
Qian Wang 1d878b3adb Use AEAD to encrypt session key in ServerHello to provide authentication of the identity of the server 5 years ago
Qian Wang e15536d7c7 Refactor TLS handshake 5 years ago
Qian Wang e0e33e12d6 Fix non random GREASE generation 5 years ago
Qian Wang 05972863b5 Add tests 5 years ago
Qian Wang 53b6b96262 Remove stupid code 5 years ago
Qian Wang 429da0e0d9 Add unit tests 5 years ago
Qian Wang e75c713385 Refactor session struct's obfs fields 5 years ago
Qian Wang 1a628cb524 Refactor client TLS 5 years ago
Qian Wang 726a405a26 TLS1.3 5 years ago
Qian Wang 0684f5df40 Refactor payload cipher 5 years ago
Qian Wang 0fbb6011fc Remove psudorandom padding 5 years ago
Qian Wang 059a222394 Use defer to unlock mutexes 5 years ago
Qian Wang 1099b558f1 Fix admin mode 5 years ago
Qian Wang 38f3a4a522 Only start a session after a local connection has been made 5 years ago