<html><body><div>Hi,</div><div><br></div><div>I've been tasked with wrapping OpenSSL encrypted traffic in another protocol (HTTP).</div><div><br></div><div>I'm able to intrude on the data stream with the BIO callback feature (BIO_set_callback), and have also created a BIO filter to play with. My problem is that the BIO I have access to seems to be the BIO pair above encryption. I need to insert plain text/unencrypted data into the stream, which suggests I need to locate the ultimate source/sink.</div><div><br></div><div>All I have access to is the SSL context (SSL*) and the BIO*. The actual code is exceptionally convoluted/fragile, so it would be great to put my modifications only in the BIO callback or in a BIO filter.</div><div><br></div><div>Any comment on how that can be done or whether I should take another approach would be appreciated.</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>W</div></body></html>