lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

There is a buffer.c module on top of which the tcp.c module is built.
This buffer.c module should be pretty generic in the sense it doesn't
call IO functions directly but rather uses an IO driver. I would create
a new IO driver that calls SSL IO functions. Then  create an ssl.c
module that exports a function to replace the IO driver used by a TCP
object with the SSL version.

I haven't actually tried doing this yet, but I had it in mind when I
designed the thing. If this isn't possible, let me know and I will make
sure it becomes possible.

It doesn't seem like a lot of code. I just didn't take the time to study
OpenSSL and see where this could possibly break down. My major concern
is timeout management and non-blocking IO.

Regards,
Diego.