multiple SSL BIO chain error (regression from 0.9.6?)
I'd really appreciate help in porting code that works fine with 0.9.6b
but fails in newer versions. I'd like to know if something has changed
in the way BIOs should be used or is the newer openssl code that is
I want to create a BIO chain consisting of a socket BIO plus an SSL
BIO plus another SSL BIO. It works fine with ancient version of
openssl 0.9.6b but fails with 0.9.7x (including 0.9.7g). Haven't
tryed with 0.9.8 beta yet.
The error I get is: "error:1409F080:SSL routines:SSL3_WRITE_PENDING:bio not set"
I create a socket BIO and then add two SSL BIOs like this:
bio_socket = BIO_new_connect( "localhost:1313" );
BIO* bio_ssl = bio_ssl_push(bio_socket);
BIO* bio_ssl_ssl = bio_ssl_push(bio_ssl);
where I have defined bio_ssl_push as a wrapper for BIO_push that adds
SSL to the chain: