If you are intending to use asynchronous event based NIO library libuv, then you might like to use BIO pair. I have done some abstraction <https://github.com/deleisha/evt-tls> on top of openSSL so that it becomes easy for callback based async lib. May be you can have a look at it On Wed, Jun 29, 2016 at 2:16 PM, Oz <ozkron at gmail.com> wrote: > I have a running program, the program is written in C > I want to convert it from connecting to an HTTP to HTTPS (SSL) > > I have an event for write/read/timeout/error and such > > How do I continue and use the current sockets FD I have, but using openSSL > over it? the most easy and simple way? > > I have created a CTX object, and an SSL object over it (SSL_new(..)) > > I thought about using BIO_new_socket, but having problems with the > connection/ hand shake and reading/writing data (I am the client code only) > > > > > > -- > openssl-users mailing list > To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users > -- Warm Regards --Dev OpenPegasus Developer "I'm one of those people that think Thomas Edison and the light bulb changed the world more than Karl Marx ever did,? Steve Jobs -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20160629/ae7d1c42/attachment.html>