Commit graph

63 commits

Author SHA1 Message Date
446d306ec5 Merge pull request 'Bump version to 0.1.2' (#11) from bump-version into master
Reviewed-on: #11
2023-01-02 15:24:16 +00:00
069655ff1f Bump version to 0.1.2 2023-01-03 00:23:16 +09:00
b8cdbc0239 Merge pull request 'Fix a bug not to proxy Persian content appropriately' (#10) from persian-content into master
Reviewed-on: #10
2023-01-02 15:22:17 +00:00
2c48d39792 Remove unused dependency 2023-01-03 00:17:58 +09:00
21e6bcf4fe [BUG FIX]Extend unparsed buffer for long content 2023-01-03 00:16:58 +09:00
70b463a54a Add test for Persian content 2023-01-02 04:09:53 +09:00
04e2b29d22 Add pretty-assertions to dev dependencies 2023-01-01 07:40:33 +09:00
e400909066 Merge pull request 'Bump version to 0.1.1' (#9) from update-crates into master
Reviewed-on: #9
2022-12-31 21:04:42 +00:00
837c3ab157 Bump version to 0.1.1 2023-01-01 06:03:59 +09:00
5984ca4007 Merge pull request 'Update ring crate' (#8) from update-ring into master
Reviewed-on: #8
2022-12-31 21:01:15 +00:00
48c861afc8 Follow Clippy 2023-01-01 05:58:19 +09:00
8758b8c5c1 [REFACTORING]Extract CsrfProtection::seal_in_place() 2023-01-01 05:35:42 +09:00
1ba0609ac3 Follow API change of ring 2023-01-01 05:15:50 +09:00
c9ed8cafdf Update ring crate to 0.16 2023-01-01 05:14:08 +09:00
Trinity Pointard
29910f2829 remove stabilized feature 2019-10-10 12:03:32 +02:00
Trinity Pointard
89ecb38026 allow exceptions that don't change http verbe 2019-08-03 22:57:01 +02:00
Trinity Pointard
4a72ea2ec7 Use constant time comparison for slice
Thanks @ProgVal for the tip
2018-12-12 00:36:30 +01:00
Trinity Pointard
2f4644f9fb Use constants instead of raw int and run Clippy 2018-12-12 00:24:00 +01:00
Trinity Pointard
9eb7b3f98b Remove dependencies to unmatained crats
Remove dependency csrf 0.3 as unmatained and can't compile on arm8
Add ring to do required cryptography
Remove dependency to rand as ring provid CPRNG
2018-12-11 15:27:08 +01:00
Trinity Pointard
717fad53cf Allow post request for clients without session 2018-12-02 15:33:01 +01:00
dependabot[bot]
c64bad6470 Update rand requirement from ~0.5.2 to ~0.6.1
Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand/commits/0.6.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-01 17:53:11 +01:00
Trinity Pointard
46a3a3bd48 Don't insert token when method is GET
Don't insert token when method is unspecified or different from POST
Run cargo clippy
2018-11-27 13:42:57 +01:00
fdb-hiroshima
e6ead8051c
Merge pull request #4 from fdb-hiroshima/plume
bump rocket version
2018-11-01 16:38:50 +01:00
Trinity Pointard
37c71dc7f7 Upgrade to rocket 0.4.0-rc.1 2018-11-01 16:26:20 +01:00
Trinity Pointard
5a95b8b98c Add tests on csrf_proxy
Add a macro must_finish, and use it in csrf_proxy's tests, to allow
	detection of infinite loop in parser
2018-10-27 14:07:30 +02:00
Trinity Pointard
2805ce5dba Add benchmarks 2018-10-01 10:26:41 +02:00
Trinity Pointard
bb97ed018d Minimise cookie creation
Create new cookies only when loading html content
2018-10-01 08:48:32 +02:00
Trinity Pointard
b326a9893a Do a better management of cookies
Don't store a cookie for each different path visited
Don't add csrf cookies if there is no session
Remove csrf cookie if session get dropped
2018-09-30 11:39:13 +02:00
Trinity Pointard
5d23ba4c6c Fix #3 2018-09-09 11:59:43 +02:00
Trinity Pointard
90a4aeca83 Fix possible assertion error on slice copy 2018-09-09 11:20:52 +02:00
Trinity Pointard
c852e554ea Fix possible index out of range 2018-09-09 09:56:22 +02:00
fdb-hiroshima
6fc55d26f9
Merge pull request #1 from lthms/latest-rocket-4.0
Update to a more recent version of rocket and to nightly-2018-07-17
2018-09-08 15:43:45 +02:00
Thomas Letan
06e14f8349 Update to a more recent version of rocket and to nightly-2018-07-17 2018-09-08 15:23:38 +02:00
Trinity Pointard
2a1aa1e48d Run cargo fmt 2018-09-08 15:03:41 +02:00
Trinity Pointard
15242489c4 Add test for CsrfFairing
Add dependancies required for tests
Fix encoding issue with some url encoders
2018-09-08 15:01:39 +02:00
Trinity Pointard
771b514a5a Run cargo fmt 2018-09-07 20:50:54 +02:00
Trinity Pointard
1fe6947822 Remove some unreachable code 2018-09-07 20:50:24 +02:00
Trinity Pointard
483f3e91f3 Finish adding test to path.rs 2018-09-07 20:43:33 +02:00
Trinity Pointard
001773cacc Add test and fix issues they revealed
Add test for truncated html
Fix issue where parser would loop on some invalid html
2018-09-07 14:02:30 +02:00
Trinity Pointard
f3ec5bd6dc Run cargo fmt 2018-09-06 22:09:46 +02:00
Trinity Pointard
e16eb40fd9 Add test and fix issues they revealed
Add some tests
Fix issue when a buffer end at the wrong place, and prevent token from
being inserted
Correct comments and indentation
2018-09-06 21:45:58 +02:00
Trinity Pointard
896fcaf14b Add support for multipart form 2018-09-03 09:26:05 +02:00
Trinity Pointard
0fbacab1bc Add tests and fix parsing error
Add test for CsrfProxy
Fix errors new tests highlighted
2018-08-08 21:21:00 +02:00
Trinity Pointard
5309b7634a Full rewrite of csrf_proxy
Full rewrite of csrf_proxy to make it more reliable
2018-07-20 17:10:20 +02:00
Trinity Pointard
91c5773d9f Merge branch 'master' into plume 2018-07-17 23:02:27 +02:00
Trinity Pointard
ecf137c512 add test for MultiDyn segments of path 2018-07-11 20:57:11 +02:00
Trinity Pointard
8bd1ebcbbb disable cargo clippy on Travis as it fail more often than none 2018-07-11 19:57:53 +02:00
Trinity Pointard
fe0c864f73 Add test for dynamic path and support for multi-segment dynamic part 2018-07-11 19:39:36 +02:00
Trinity Pointard
f6e9c29311 base plume branch on the same rocket as Plume-org/Plume 2018-06-30 15:33:26 +02:00
Trinity Pointard
452c390665 base master on rocket 0.3 (released) 2018-06-30 15:28:34 +02:00