deleisha / evt-tls

The asynchronous TLS abstraction for OpenSSL
MIT License
124 stars 30 forks source link

Do you plan to support mbedTLS? #11

Open zhaojh329 opened 7 years ago

zhaojh329 commented 7 years ago

Do you plan to support mbedTLS?

bl4ck5un commented 6 years ago

Same question!

deleisha commented 6 years ago

Yes, we intend to support. Contributors welcome

realquantumcookie commented 6 years ago

Right. mbedtls is much easier to build compare to OpenSSL, and it is great to see a lib that supports SSL with libuv with embedtls. Looking forward to the new implemented embedtls version of evt-tls!

deleisha commented 6 years ago

Experimentation on mbedtls started, Either I am not fluent yet on it or their API are complete yet. Using mbedtls as state black box is little difficult.

realquantumcookie commented 6 years ago

mbedTLS-Tutorial This link could probably help. It describes how to create TLS connected Sockets using it.
Good Luck : )

realquantumcookie commented 6 years ago

I just read a bit about the tutorial. embedTLS is hard to implement into evt-tls. It replaces the original read() function in UNIX and Windows API. Rather than using read(), it let you use its own function. I think that implementing embedTLS support could be compicated and time-consuming since we might need to modify the implemention inside libuv.

realquantumcookie commented 6 years ago

As LibUV-mbedtls do, he re-wrote bio.c from mbedtls and then wrap mbedtls over libuv. I think this could be a good solution for us.

deleisha commented 6 years ago

Thanks @ToiletCommander for your effort. Perhaps, we don't want to go wolfssl way for mbedtls as that will involved maintaining the bio.c. I did a feature request to mbedtls. They leave network IO(nio) handling to the user and don't do buffering. So, we need to come up with NIO part. Now we know what need to be done. I am working on now to have a unified error handling.

realquantumcookie commented 6 years ago

Just one question, as you requested the feature, when is the feature going to be implmented? Because I am uncertain about the version of the mbedtls lib to download.

deleisha commented 6 years ago

I don't think it will be in the near future. We can go ahead without that as well. Please get the latest release version because that's the version that I am planning to checked in and use.