Commit Graph

47 Commits

Author SHA1 Message Date
moznion 6ccd711f06 Comment for special RADIUS code; zero out authenticator
Signed-off-by: moznion <moznion@mail.moznion.net>
2021-02-04 00:21:54 +09:00
moznion 7bbb8b8647 Merge pull request #17 from codertao/add-acct-resp-encode
Add AccountingResponse to set of known codes for encode
2021-02-03 23:42:27 +09:00
Matt Moss 5ce74d19eb Add AccountingResponse to set of known codes for encode 2021-02-03 02:13:04 +00:00
moznion 6ef727b601 Merge pull request #13 from moznion/renovate/rust-rand-0.x
Update Rust crate rand to 0.8.2
2021-01-23 14:53:07 +09:00
Renovate Bot 29970688d6 Update Rust crate rand to 0.8.2 2021-01-22 13:58:47 +00:00
Renovate Bot c2737f8a31 Update Rust crate log to 0.4.13 2021-01-22 13:58:40 +00:00
Renovate Bot 7e80de4233 Update Rust crate rand to 0.8.1 2021-01-06 19:49:18 +00:00
moznion eaa171ec48 Add documentation for generated RFC utilities 2021-01-03 15:03:00 +09:00
moznion 48a9c56e3f Set a couple of parameters by setter, instead of function parameters 2021-01-03 11:34:05 +09:00
moznion 88e01fc828 Separate server bootstrap sequence between listen() and run()
Initially it uses a channel that given through the `run()` parameter to notify when a server becomes ready,
but that doesn't work because it never run the procedure until `await` called.
This means if it calls `await`, it blocks the procedure so it cannot consume a channel simultaneously.
Thus, it separates bootstrap sequence between `listen()` and `run()`.
`listen()`: Start UDP listening. After this function call is finished, the RADIUS server is ready.
`run()`: Start a loop to handle the RADIUS requests.
2021-01-03 11:19:28 +09:00
moznion ce4ac93631 Upgrade tokio version: v1.0.1 2021-01-02 11:24:55 +09:00
moznion 29989d903e fmt 2021-01-02 10:45:32 +09:00
moznion 24b261798a Releng: v0.1.0 2020-12-22 09:41:08 +09:00
moznion b0fe80d6e3 feat: make an identifier of a Packet instance configurable through a constructor and a setter method
rel: #6
2020-12-21 23:17:30 +09:00
moznion 749c8eddb1 releng: v0.0.3 2020-12-12 14:18:49 +09:00
moznion c2ed7ac6cd Fill some Cargo.toml items for crates.io 2020-12-12 14:17:42 +09:00
moznion b4e7326f78 releng: v0.0.2 2020-12-12 13:51:41 +09:00
moznion 148060a506 Fix the license name to be suitable with SPDX 2020-12-12 13:49:14 +09:00
moznion 2855b42cb2 releng: prepare the publishing 2020-12-12 13:38:45 +09:00
moznion 2f2c344f2b Restructure 2020-12-12 13:38:40 +09:00
moznion 37f5b03ad7 Remove unnecessary casts 2020-12-12 02:59:56 +09:00
moznion 7910542618 Improve error enums 2020-12-12 02:50:39 +09:00
moznion e61341004f Fix a clippy warning 2020-12-12 00:24:37 +09:00
moznion a53ca1d40c Expand the test for packet 2020-12-12 00:16:46 +09:00
moznion 6d105b9961 Respect the pre-defined attribute type on each value 2020-12-10 00:41:03 +09:00
moznion 1e03c42d59 Cosmetic change 2020-12-10 00:09:02 +09:00
moznion cda352e87f Fix weird method names that are generated automatically 2020-12-08 00:46:12 +09:00
moznion 3e6701b0b1 📝 doc 2020-12-07 23:28:38 +09:00
moznion 93b951eff8 Add test cases for AVP encoding/decoding 2020-12-06 19:13:08 +09:00
moznion dabbf02109 Support RFC6572 and ipv4prefix type 2020-12-06 16:55:27 +09:00
moznion a251f4b2af Support RFC5904 and short type 2020-12-06 16:27:17 +09:00
moznion 2b6b80a83e Support the following RFC dictionaries
- RFC4603
- RFC4675
- RFC4818
- RFC4849
- RFC5176
- RFC6911
- RFC7055
- RFC7155
2020-12-06 16:09:03 +09:00
moznion bece870914 Support RFC4372 2020-12-06 15:39:50 +09:00
moznion a792e174c1 Support RFC3580 2020-12-06 15:38:56 +09:00
moznion bb1743a96c Support RFC3162 2020-12-06 15:33:13 +09:00
moznion 84f225b4c0 Support RFC2869 2020-12-03 02:21:33 +09:00
moznion dfbf191896 Support RFC5607 2020-12-02 02:55:03 +09:00
moznion bbd70e4838 Support RFC4072 2020-12-02 02:52:04 +09:00
moznion 5053597ad7 Support RFC5090 2020-12-02 02:49:55 +09:00
moznion 7e3c900ad5 Support RFC6519 2020-12-02 02:46:20 +09:00
moznion 258416839b Support RFC6677 2020-12-02 02:44:12 +09:00
moznion 6e59de2707 Support RFC3576 2020-12-02 02:39:52 +09:00
moznion b82d400aae Refactor for AVP 2020-12-02 02:32:45 +09:00
moznion f27b0d85fb Support RFC2868 2020-12-02 02:27:15 +09:00
moznion a86e88cd20 Add Tunnel-Password encoder-decoder 2020-12-02 00:18:31 +09:00
moznion 51c59127ab Add tag structure 2020-12-02 00:17:55 +09:00
moznion 0ef10d8554 Restructure the project tree 2020-11-29 12:45:35 +09:00