diff --git a/ntex-tls/CHANGES.md b/ntex-tls/CHANGES.md index 2d66bb00..c4c86c11 100644 --- a/ntex-tls/CHANGES.md +++ b/ntex-tls/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## [0.1.1] - 2022-01-10 + +* Remove usage of ntex::io::Boxed types + ## [0.1.0] - 2021-12-30 * Upgrade to ntex-io 0.1 diff --git a/ntex-tls/Cargo.toml b/ntex-tls/Cargo.toml index bb9e4124..adc48078 100644 --- a/ntex-tls/Cargo.toml +++ b/ntex-tls/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ntex-tls" -version = "0.1.0" +version = "0.1.1" authors = ["ntex contributors "] description = "An implementation of SSL streams for ntex backed by OpenSSL" keywords = ["network", "framework", "async", "futures"] @@ -26,9 +26,9 @@ rustls = ["tls_rust"] [dependencies] ntex-bytes = "0.1.8" -ntex-io = "0.1.0" -ntex-util = "0.1.5" -ntex-service = "0.3.0" +ntex-io = "0.1.2" +ntex-util = "0.1.8" +ntex-service = "0.3.1" pin-project-lite = "0.2" # openssl diff --git a/ntex-tls/examples/server.rs b/ntex-tls/examples/server.rs index 65fa57ea..567a214b 100644 --- a/ntex-tls/examples/server.rs +++ b/ntex-tls/examples/server.rs @@ -1,7 +1,7 @@ use std::io; use ntex::service::{fn_service, pipeline_factory}; -use ntex::{codec, io::utils::filter, io::Io, server, util::Either}; +use ntex::{codec, io::filter, io::Io, server, util::Either}; use ntex_tls::openssl::{PeerCert, PeerCertChain, SslAcceptor}; use tls_openssl::ssl::{self, SslFiletype, SslMethod, SslVerifyMode}; diff --git a/ntex-tls/src/openssl/accept.rs b/ntex-tls/src/openssl/accept.rs index 09a5c419..70c83075 100644 --- a/ntex-tls/src/openssl/accept.rs +++ b/ntex-tls/src/openssl/accept.rs @@ -1,7 +1,7 @@ use std::task::{Context, Poll}; use std::{error::Error, future::Future, marker::PhantomData, pin::Pin}; -use ntex_io::{utils::BoxedFactory, Filter, FilterFactory, Io}; +use ntex_io::{Filter, FilterFactory, Io}; use ntex_service::{Service, ServiceFactory}; use ntex_util::{future::Ready, time::Millis}; use tls_openssl::ssl::SslAcceptor; @@ -35,10 +35,6 @@ impl Acceptor { self.acceptor.timeout(timeout); self } - - pub fn seal(self) -> BoxedFactory, Io> { - BoxedFactory::new(self) - } } impl From for Acceptor {