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
Trinity Pointard
e39e3e8ca1
add test for static path
2018-06-30 14:33:25 +02:00
Trinity Pointard
baed6a2bbf
add first tests to try codecov.io
2018-06-30 13:50:56 +02:00
Trinity Pointard
c7eff190e0
make doc test work
2018-06-30 13:06:28 +02:00
Trinity Pointard
445fc537ef
add travis integration
2018-06-30 12:30:15 +02:00
Trinity Pointard
e6e967cc91
split lib.rs into smaller files
2018-06-30 12:15:06 +02:00
Trinity Pointard
13ca47ef73
Fix a bug on CsrfProxy
...
Fix a bug where CsrfProxy would read data that was already present in
read buffer, where it should consider it uninitialized
Reported by @gled-rs on Plume-org/Plume#96
2018-06-30 09:32:41 +02:00
Trinity Pointard
871b9ef2d6
Make code more idiomatic
...
Remove all clippy warnings to make code more idiomatic
2018-06-28 12:59:18 +02:00
Trinity Pointard
c1e75e49db
Fix links in documentation
2018-06-25 14:01:08 +02:00
Trinity Pointard
0a403f4825
Add comments
2018-06-25 13:11:58 +02:00
Trinity Pointard
acce8261c9
Add documentation and some functions on builder
2018-06-24 21:20:56 +02:00
Trinity Pointard
50947b8715
run cargo fmt
2018-06-24 19:53:47 +02:00
Trinity Pointard
80687a64a8
Fix issue with cookie creation
...
Fix issue where CsrfToken was setting cookieswas setting cookies properly, but pseudo-proxying would not
2018-06-24 18:54:23 +02:00
Trinity Pointard
bbabb7b19d
Initial commit
...
add a fairing for automatic verification and tag insertion
2018-06-24 17:39:11 +02:00