How to use new IoBoxed #91
Replies: 2 comments 9 replies
-
you can get peer addr via query() api, |
Beta Was this translation helpful? Give feedback.
-
I've looked inside rustls part of ntex_tls and am not sure that I can do it at once. Should we convert Certificate and CertChain to common form for both openssl/rustls? For now, I have (rustls part is obviousely not working, and I took it from the previous version of my code):
that still differ. It would be nice to have the Certificate implementation in independent form for cname extraction and other operations become implementation independent. Maybe x509_parser crate is an appropriate choice. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using 0.4.x was like
Handshake<Io>
which I converted intotokio Either
like this:And after that I could use it like this:
How can I reach the internal Io from the
Handshake
without a generic (withIoBoxed
) in 0.5.x and distinguish betweentcp
,rustls TlsStream
, andopenssl SslStream
? Because I need access to the real Io in order to make Auth based on cert content, IP and much more in my project that usesntex-mqtt
.Beta Was this translation helpful? Give feedback.
All reactions