<div dir="ltr"><div>Hi Viktor,<br><br></div>I am already setting that.<br><br>   socket->ssl_bio = BIO_new(BIO_f_ssl());<br>    if (!(socket->ssl_bio))<br>    {<br>        HANDLE_CATASTROPHIC_INIT_ERROR("client-ssl-bio")<br>        return;<br>    }<br><br>    SSL_set_connect_state(socket->ssl);<br>    SSL_set_bio(socket->ssl, socket->inter_bio, socket->inter_bio);<br>    BIO_set_ssl(socket->ssl_bio, socket->ssl, BIO_NOCLOSE);<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 10, 2016 at 12:19 PM, Viktor Dukhovni <span dir="ltr"><<a href="mailto:openssl-users@dukhovni.org" target="_blank">openssl-users@dukhovni.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Oct 10, 2016, at 2:20 AM, Ajay Garg <<a href="mailto:ajaygargnsit@gmail.com">ajaygargnsit@gmail.com</a>> wrote:<br>
><br>
>            BIO *inter_bio;               // intermediate-bio, have no idea what it really is used for.<br>
<br>
</span>The internal BIO from BIO_new_bio_pair must be attached to the SSL<br>
handle via:<br>
<br>
    SSL_set_bio(ssl, internal_bio, internal_bio);<br>
<br>
When SSL writes ciphertext to the internal bio, you can read that via<br>
the network_bio.  When you write to the network_bio, SSL can read the<br>
data via the internal_bio.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
        Viktor.<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/<wbr>mailman/listinfo/openssl-users</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>Ajay<br></div>
</div>