[openssl-users] Getting the retry reason for a "failed" BIO_write/BIO_read

Ajay Garg ajaygargnsit at gmail.com
Mon Oct 10 06:58:38 UTC 2016


Hi Viktor,

I am already setting that.

   socket->ssl_bio = BIO_new(BIO_f_ssl());
    if (!(socket->ssl_bio))
    {
        HANDLE_CATASTROPHIC_INIT_ERROR("client-ssl-bio")
        return;
    }

    SSL_set_connect_state(socket->ssl);
    SSL_set_bio(socket->ssl, socket->inter_bio, socket->inter_bio);
    BIO_set_ssl(socket->ssl_bio, socket->ssl, BIO_NOCLOSE);


On Mon, Oct 10, 2016 at 12:19 PM, Viktor Dukhovni <
openssl-users at dukhovni.org> wrote:

>
> > On Oct 10, 2016, at 2:20 AM, Ajay Garg <ajaygargnsit at gmail.com> wrote:
> >
> >            BIO *inter_bio;               // intermediate-bio, have no
> idea what it really is used for.
>
> The internal BIO from BIO_new_bio_pair must be attached to the SSL
> handle via:
>
>     SSL_set_bio(ssl, internal_bio, internal_bio);
>
> When SSL writes ciphertext to the internal bio, you can read that via
> the network_bio.  When you write to the network_bio, SSL can read the
> data via the internal_bio.
>
> --
>         Viktor.
>
> --
> openssl-users mailing list
> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
>



-- 
Regards,
Ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20161010/cd20d979/attachment.html>


More information about the openssl-users mailing list