<div dir="ltr"><div><div><div>If you are intending to use asynchronous event based NIO library libuv, then <br></div>you might like to use BIO pair.<br><br></div>I have done<a href="https://github.com/deleisha/evt-tls"> some abstraction</a> on top of openSSL so that it becomes easy for callback based async lib.<br><br></div>May be you can have a look at it<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 29, 2016 at 2:16 PM, Oz <span dir="ltr"><<a href="mailto:ozkron@gmail.com" target="_blank">ozkron@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a running program, the program is written in C<br>
I want to convert it from connecting to an HTTP to HTTPS (SSL)<br>
<br>
I have an event for write/read/timeout/error and such<br>
<br>
How do I continue and use the current sockets FD I have, but using openSSL<br>
over it? the most easy and simple way?<br>
<br>
I have created a CTX object, and an SSL object over it (SSL_new(..))<br>
<br>
I thought about using BIO_new_socket, but having problems with the<br>
connection/ hand shake and reading/writing data (I am the client code only)<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
<br>
--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/mailman/listinfo/openssl-users</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Warm Regards<br>--Dev<br>OpenPegasus Developer<br><br>"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<br></div></div></div>
</div>