2014-07-18 8:44 GMT+02:00 Thulasi Goriparthi <thulasi.goripar...@gmail.com>: > In the example, only internal_bio is set using SSL_set_bio as below. > > SSL_set_bio(ssl, internal_bio, internal_bio); > > network_bio is not linked to SSL session. So it has to be freed explicitly.
Sorry, you are right. But, is it ok the example? does this really make sense?: ----------------------------- BIO *internal_bio, *network_bio; ... BIO_new_bio_pair(internal_bio, 0, network_bio, 0); SSL_set_bio(ssl, internal_bio, internal_bio); ----------------------------- what is network_bio used for? Anyhow I still insist that the example is broken: -------------- BIO *internal_bio, *network_bio; BIO_new_bio_pair(internal_bio, 0, network_bio, 0); -------------- It should be: -------------- BIO *internal_bio, *network_bio; BIO_new_bio_pair(&internal_bio, 0, &network_bio, 0); -------------- Well, I assume the doc example will NEVER be fixed, am I right? -- Iñaki Baz Castillo <i...@aliax.net> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org