<div dir="ltr"><div>Hi All.<br><br><div>Taking the socket-structure as ::<br><br>##############################<wbr>##############################<wbr>##############################<wbr>#######<br></div><div>           SSL *ssl;<br><br></div><div>           BIO *ssl_bio;                 // app-payload-bytes will be written by app into it.<br></div><div>           BIO *inter_bio;               // intermediate-bio, have no idea what it really is used for.<br></div><div>          
 BIO *network_bio;          // app-payload-encrypted-bytes will "emerge"
 from this bio, ready to be written over the wire<br></div>##############################<wbr>##############################<wbr>##############################<wbr>#######<br><br></div><br><br><br>and assuming all initialization went fine, what is the correct way to get the retry-reason ::<br><br>##############################<wbr>##############################<wbr>##############################<wbr>#######<br>        if(BIO_should_retry(socket->ssl_bio) != 0)<br>        {            <br><div>              int reason =  BIO_get_retry_reason(socket->ssl_bio);<br>        }<br><br></div><div>                                              OR<br><br></div><div>        if(BIO_should_retry(socket->ssl_bio) != 0)<br>        {            <br>              int reason = BIO_get_retry_reason(BIO_get_retry_BIO(socket->ssl_bio, NULL));<br>        }<br>##############################<wbr>##############################<wbr>##############################<wbr>#######<br><br><br></div><div>Right now, I am receiving 0 (zero) as the reason in both the cases, and none of SSL_ERROR_WANT_WRITE or SSL_ERROR_WANT_READ (in either case).<br><br><br></div><div>Thanks and Regards,<br></div><div>Ajay<br></div><div>         <br><br clear="all"><div><br>-- <br><div class="gmail_signature">Regards,<br>Ajay<br></div>
</div></div></div>