Commit Graph
431 Commits
Author SHA1 Message Date
Y. T. Chung ab79b69fdd Correctify naming of ***IetfPoly1305 2018-06-01 08:58:25 +08:00
Y. T. Chung f23d35c273 fixed bug, miscreant build 2018-05-31 23:19:47 +08:00
Y. T. Chung 1c52a4647d Add missing register in new aead encryptor/decryptor 2018-05-31 22:58:14 +08:00
Y. T. Chung b9aaadf539 Fixed #113, implemented xchacha20-ietf-poly1305, updated aead trait by combining tag into input or output buffer 2018-05-31 22:53:51 +08:00
Y. T. Chung 16cb100bd8 Travis installs libsodium with apt, test appveyor by preinstalled openssl 2018-05-31 07:53:02 +08:00
Y. T. Chung 4bdb41808d Test if subprocess Sendable Popen works in win32 2018-05-31 07:41:55 +08:00
Y. T. Chung d9ba5e8445 Fixed bug, Event on windows will spawn tasks to current executor 2018-05-31 07:33:40 +08:00
Y. T. Chung e5cf8907b5 Updated doc tests 2018-05-30 21:41:25 +08:00
Y. T. Chung 0acdb15029 Upgrade rand to v0.5 and use ThreadRng #111, updated to support the latest trust-dns AsyncResolver 2018-05-30 20:50:15 +08:00
Y. T. Chung 8f69141b33 Call tokio::run from the outermost, allow test to run tokio runtime in multiple threads 2018-05-18 23:21:30 +08:00
Y. T. Chung 8f4ba32b58 Updated join_all in DNS relay, enable backtrace in appveyor 2018-05-18 22:32:57 +08:00
Y. T. Chung b7b0c59322 Plugin must be sendable 2018-05-18 22:12:52 +08:00
Y. T. Chung 3055aab518 Replaced join_all with futures_unordered 2018-05-18 19:14:57 +08:00
Y. T. Chung 1e6bc3ba76 Optimize server listening logic, join_all 2018-05-17 20:57:22 +08:00
Y. T. Chung b4f44f4850 Fixed bug, should not return error if peer_addr() failed, #106 2018-05-17 20:48:13 +08:00
Y. T. Chung 212735450a Fixed bug, UDP relay must be started before plugin 2018-05-17 01:40:53 +08:00
Y. T. CHUNG 8be6da51f3 Migrate tokio and uses new features (#108)
* Add #102 link in README

* Migrating to tokio, #100

* Migrated to tokio-signal v0.2, reformatted

* Should not call tokio::spawn before tokio::run

* Build nightly and stable with different image tag

* Removed unnecessary rustup install

* Renamed version to v1.7.0-alpha

* Removed deprecated calls of Buf

* Updated dependencies

* [#106] Fixed bug, should not hold UDP connections forever

* Lower info log to debug

* Bump version to v1.7.0-alpha.2

* Implement a simple DNS relay server, bump version to v1.7.0-alpha.3

* Better logging

* Fixed build on travis

* Add elapsed time in log

* Should not exit if handler return error

* reformatted

* Add test for DNS

* Updated ssdns param

* Use `trust-dns` and impl Trait
1. Replaced `ToSocketAddrs` with `trust-dns`
2. Uses impl Trait for functions
3. Updated dependencies
4. Fixed bugs

* Bug fixed, logging crate in ssdns
2018-05-16 00:03:50 +08:00
Y. T. Chung 34313e6202 Updated deps, optimize err log 2018-03-04 01:43:23 +08:00
Y. T. Chung 9b3764ed6f [#96] Do not panic if peer_addr() failed after accept 2018-02-02 22:40:45 +08:00
Y. T. Chung 804eb63759 ssurl should generate proper url for qrcode 2018-01-30 01:43:20 +08:00
Y. T. Chung 154ec5d172 Updated to v1.6.11 2018-01-20 20:47:06 +08:00
Y. T. Chung 5c89e61a2e Reformatted with new rustfmt 2018-01-20 01:10:16 +08:00
quininer 32d5a2d9e9 update dependencies (#91)
update dependencies and fix #90
2018-01-08 21:44:35 +08:00
Y. T. Chung b42fbad1ad [#88] Prints peer addr while failing to handshake 2017-12-06 09:15:04 +08:00
Y. T. Chung ac8de69b04 Guarded AEAD packet maximum length, v1.6.10 2017-12-02 22:55:03 +08:00
Y. T. Chung da3e850e4a Bump version to v1.6.9, updated dependencies 2017-11-26 18:35:00 +08:00
BenYip 67284fce18 fix increase_nonce (#84) 2017-11-24 15:23:16 +08:00
quininer dc8f7e2832 Add experimental SIV support (#81)
* add optional miscreant support

* add miscreant test

* fix miscreant version

* update README

+ add `aes-128-pmac-siv`, `aes-256-pmac-siv`
+ remove `aes-192-gcm`
2017-11-01 16:23:36 +08:00
quininer 47551d832a Fix a typo (#80) 2017-11-01 15:44:54 +08:00
Y. T. Chung 0c495c9e36 Properly split 2017-10-29 18:17:09 +08:00
Y. T. Chung 7802f08d04 Remove unnecessary to_string 2017-10-29 18:14:32 +08:00
Y. T. Chung 833f31442d let sslocal supports ssurl 2017-10-29 18:07:57 +08:00
Y. T. Chung 6f9f272700 Optimize logging in DNS resolving and connecting 2017-10-19 23:51:38 +08:00
Y. T. Chung 1efffaf8d0 Remove unused LOCAL_ADDR, LOCAL_PORT for ssserver 2017-10-17 21:10:03 +08:00
Y. T. Chung 289cbf6722 Lower log level for connecting, fixed #75 2017-10-15 22:43:04 +08:00
Y. T. Chung 2a5d2edcb3 Optimized DNS resolving logic 2017-10-15 22:31:41 +08:00
Y. T. Chung 2a42daff64 Fixed warning, removed unused mut 2017-10-15 13:24:10 +08:00
Y. T. Chung a70ce43b03 Optimized server ip resolving error messages 2017-10-14 10:03:38 +08:00
Y. T. Chung 1e6b2e60bc Fixed bug, filter return false will be filtered, updated error messages 2017-10-12 09:05:09 +08:00
Simon Shi 3b09d7633d Debian package fixes (#73)
* General cleanup & Refine Makefile

* Add sysinit & systemd file

* refine readme

* Bump deb version
Use `dch -i` for this work.

* Fix dependency

* Unnecessary postrm

* Add missing arguments
2017-10-12 02:00:46 +08:00
Y. T. Chung 132aaf3ac3 Removed DNS local cache, uses CpuPool with system DNS resolver 2017-10-12 01:57:12 +08:00
Y. T. Chung 884fd8fc8b Moe exit message 2017-10-09 19:55:47 +08:00
依云 0b89960f1f exit with 0 on SIGTERM / SIGINT (#71)
so that the manager / supervisor knows that we're exiting successfully.
2017-10-09 14:31:17 +08:00
Y. T. Chung 25090ee1b6 Lower log level 2017-10-09 09:33:59 +08:00
Y. T. Chung 03cf77cf76 Fixed monitor on Windows 2017-10-09 01:46:59 +08:00
Y. T. Chung 91ec4cdbd5 Allow building without libsodium 2017-10-09 01:24:41 +08:00
Y. T. Chung 262b22bfbb Exit normally with properly exit code, handles events in Windows.
* Also fixed [#70]
2017-10-09 00:51:19 +08:00
Y. T. Chung d6f4932cf9 Allow logging without time, enable LTO 2017-10-07 22:55:00 +08:00
Y. T. Chung ad924db56b Removed aes-128-ctr and updated Makefile
* aes128ctr has been deprecated in libsodium 1.0.15
2017-10-04 04:23:35 +08:00
Y. T. Chung 89adb72b97 Updated README 2017-09-08 09:20:59 +08:00