Commit graph

73 commits

Author SHA1 Message Date
Nikolay Kim
41045de766 Attempt to fix #190 2023-11-12 22:28:37 +06:00
Nikolay Kim
acc5973eee Prep release 2023-11-03 17:38:46 +06:00
Nikolay Kim
24ff5d6909
Refactor tls impl (#237) 2023-11-03 17:33:45 +06:00
Nikolay Kim
fbd6a4f44d
Upgrade deps (#230) 2023-10-16 20:06:16 +06:00
Nikolay Kim
02e111d373
Add missing fmt::Debug impls (#224)
* Add missing fmt::Debug impls
2023-09-11 21:43:07 +06:00
Nikolay Kim
1fd6311a5d Update changes 2023-06-22 18:43:25 +06:00
Nikolay Kim
6382ef6b40
Refactor service pipelines (#214) 2023-06-22 18:39:09 +06:00
Nikolay Kim
108e2ac20a Rename Ctx to ServiceCtx 2023-06-19 18:47:15 +06:00
Nikolay Kim
1b199712a9 Update versions 2023-06-16 20:32:52 +06:00
Nikolay Kim
4650a41648 Update changes 2023-06-16 00:16:14 +06:00
Nikolay Kim
7960b550c9 Migrate to ntex-service 1.2 (#209)
* Migrate to ntex-service 1.2
2023-06-16 00:16:14 +06:00
Cris Liao
e151b1eff1 Upgrade rustls version to 0.21 (#201)
* Upgrade rustls version to 0.21
2023-06-16 00:16:14 +06:00
Nikolay Kim
29e04cf478
Switch to 2021 edition (#172) 2023-02-02 19:30:07 +01:00
Nikolay Kim
0f8387c3ac
Refactor io buffers api (#169)
* Refactor io buffers api
2023-01-29 18:02:12 +01:00
Nikolay Kim
63881e40f6
Release empty buffers (#166)
* Release empty buffers
2023-01-25 18:38:00 +01:00
Nikolay Kim
0d5cd049b1
Change io buffers layout (#165)
* Change buffers layout
2023-01-25 17:03:42 +01:00
Nikolay Kim
dec6fd3dd8 Process write buffer if filter wrote to write buffer during reading 2023-01-24 08:31:26 +01:00
Nikolay Kim
83d05d81ef
Refactor ntex-io (#164)
* Refactor Io and Filter types
2023-01-23 09:42:00 +01:00
Nikolay Kim
f44cad4512 Prepare release 2023-01-04 12:19:52 +01:00
Nikolay Kim
a54f6f7ac2 Prepare release 2022-12-28 13:02:24 +01:00
Nikolay Kim
67eb653ef2 Prepare ntex-service release 2022-12-28 09:45:41 +01:00
Nikolay Kim
b416386bae Update versions 2022-12-28 09:36:16 +01:00
Nikolay Kim
537d8dc18d
Use GAT (#153)
* Rename Transform to Middleware

* Drop FnService's shutdown helper

* refactor Service trait to use GAT

* Migrate ntex to new service

* move Stack to service

* use BoxFuture

* simplify poll_shitdown method
2022-12-26 19:58:38 +01:00
Nikolay Kim
f731a7800d Update tests 2022-11-25 01:07:25 +01:00
Nikolay Kim
3133665342 Prepare release 2022-10-26 11:16:46 +02:00
Ulf Lilleengen
7b4696b193
Create the correct PskIdentity type on query (#138) 2022-10-26 11:13:03 +02:00
Nikolay Kim
bc51d800ff Log ssl errors 2022-10-14 16:46:27 +02:00
Jens Reimann
eabb165dda
feat: allow extracting TLS SNI server name and TLS PSK identity (#136)
This change allows to query for the SNI server name and the PSK
identity.

The server name implements only the DNS variant, as this is what both
APIs currently seem to support.

The PSK identity is only implemented for OpenSSL, as RustTLS currently
doesn't support TLS PSK. But it could be implemented the same way, once
this becomes available.
2022-10-14 16:45:12 +02:00
Nikolay Kim
7ce1927566 clippy 2022-10-03 10:21:08 +02:00
Nikolay Kim
6ae0cd002d Fix rustls hangs during handshake #103 2022-02-19 21:54:09 +06:00
Nikolay Kim
706853c72b Move HttpProtocol to ntex-io 2022-02-18 15:31:16 +06:00
Nikolay Kim
aab6eef780 Do not use SslRef::is_init_finished() method for openssl 2022-02-11 17:14:47 +06:00
Nikolay Kim
93fe6d9ee8 Prepare release 2022-01-30 20:11:11 +06:00
Nikolay Kim
868c0324f7 Use BytesVec for io 2022-01-30 19:02:29 +06:00
Andrey Voronkov
2d13488c17
PeerCert and PeerCertChain implementation for rustls (#101)
* PeerCert and PeerCertChain implementation for rustls

* Move PeerCert and PeerCertChain to rustls/mod.rs

* Add tests. Failed due to only x509 v3 is supported in rustls

* Use io variable name

* Fix all other tests. Now one failing: test_rustls_string

* Add #[ignore] temporary for test_rustls_string
2022-01-29 14:27:51 +06:00
Juan Aguilar
2439797fcf
Implement std::error::Error and fix minor issues (#99)
* fix clippy issues

* implement std error for ntex errors and bound WebResponseError

* fix minor issues
2022-01-25 22:27:18 +06:00
Nikolay Kim
b49a5ed195 Update Filter trait usage 2022-01-12 22:08:50 +06:00
Nikolay Kim
eac1f068fb Add optional simd utf8 validation 2022-01-09 19:43:49 +06:00
Nikolay Kim
42e140b805 Remove usage of ntex::io::Boxed types 2022-01-09 18:56:37 +06:00
Nikolay Kim
bf808d4d18
Move util services to ntex-util (#89)
* move util services to ntex-util

* update versions
2022-01-03 21:59:35 +06:00
Nikolay Kim
e2fe92353c prep release 2021-12-30 18:39:15 +06:00
Nikolay Kim
ca72be32e9 Add Io::poll_status_update() method to use instead of register_dispatcher() 2021-12-30 16:42:43 +06:00
Nikolay Kim
dc17d00ed9 Cleanup Filter trait, removed closed,want_read,want_shutdown methods 2021-12-29 15:10:24 +06:00
Nikolay Kim
56ed50c6e8
Initial impl for async-std support (#87)
* initial impl for async-std support
2021-12-28 23:58:01 +06:00
Nikolay Kim
7751e944f4 proper handling for openssl ZERO_RETURN error 2021-12-28 12:26:51 +06:00
Nikolay Kim
deaa2656ff fix write for openssl filter 2021-12-28 11:16:23 +06:00
Nikolay Kim
bb45502886 Add query support for peer cert and peer cert chain 2021-12-28 02:11:24 +06:00
Nikolay Kim
89f758f8c4 Fix error handing for nested filters 2021-12-28 00:08:35 +06:00
Nikolay Kim
aca40ad6ff Do not swallow decoded read bytes in case of filter error 2021-12-27 18:28:50 +06:00
Nikolay Kim
baba17d48c fix ssl filters 2021-12-27 01:09:37 +06:00