Commit graph

97 commits

Author SHA1 Message Date
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
Nikolay Kim
19c6a2b731 Release write buf after error 2021-12-26 19:25:46 +06:00
Nikolay Kim
079a1c9cbf Fix read filters ordering 2021-12-26 19:25:07 +06:00
Nikolay Kim
531bafbae2 prep release 2021-12-26 19:25:06 +06:00
Nikolay Kim
093ddadfab Make IoBoxed into spearate type 2021-12-26 19:25:06 +06:00
Nikolay Kim
f0f899a36e update ServiceFactory api 2021-12-24 03:53:39 +06:00
Nikolay Kim
ea7d86e905 migrate ntex-tls 2021-12-24 01:19:44 +06:00
Nikolay Kim
211eb00715 get read buf from inner filter for ssl filters 2021-12-22 17:52:16 +06:00
Nikolay Kim
8bbbfde22d cleanup Filter trait 2021-12-22 13:50:14 +06:00
Nikolay Kim
fd97208a01 change recv/poll_recv api 2021-12-22 02:13:02 +06:00
Nikolay Kim
2e7547948e re-export max_concurrent_ssl_accept 2021-12-22 01:25:28 +06:00
Nikolay Kim
0b98468c1a update default generic type for ssl filters 2021-12-21 21:52:22 +06:00
Nikolay Kim
6c68a59e99 refactor io api and backpressure api 2021-12-21 14:22:57 +06:00
Nikolay Kim
8f4eb4e6bb rename write_ready to flush 2021-12-21 01:42:29 +06:00
Nikolay Kim
7f1ff246f3 prep release 2021-12-20 21:40:42 +06:00
Nikolay Kim
72ac0b1629 update examples 2021-12-20 20:20:23 +06:00
Nikolay Kim
ed57a964b6 cleanup ntex-io api 2021-12-20 18:43:12 +06:00
Nikolay Kim
a57da1b3f3 prep release and update tests 2021-12-19 11:15:21 +06:00
Nikolay Kim
d1071a1f18 update tls filters 2021-12-19 10:55:42 +06:00
Nikolay Kim
1af728eb01 impl rustls acceptor; update filter trait 2021-12-19 03:22:55 +06:00
Nikolay Kim
d7083c15d8 add ntex-io changes 2021-12-18 20:40:33 +06:00
Nikolay Kim
aa5f6e4b55
Replace mio with polling for accept loop (#71)
* replace mio with poller for accept loop
2021-12-18 00:49:27 +06:00
Nikolay Kim
c370dd74b4 move tls acceptors to ntex-tls crate 2021-12-17 09:52:01 +06:00
Nikolay Kim
6bc654762d cleanup api; update tests 2021-12-17 09:52:00 +06:00