<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-09-06 16:05 GMT+02:00 Matt Caswell <span dir="ltr"><<a href="mailto:matt@openssl.org" target="_blank">matt@openssl.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 06/09/16 14:55, Lorenzo Miniero wrote:<br>
> Apologies for reviving this old thread, but a user of my project made me<br>
> notice that my code doesn't compile on Openssl 1.1.0 anymore. Apparently<br>
> the cause is some structures have been made opaque in the new version.<br>
> In my case, the structure that breaks the code is BIO, as I used some of<br>
> its previously public properties in my filter. Is there any transition<br>
> documentation page that can help figuring out how I can adapt it<br>
> accordingly? Or is the way my filter was written at the time hopelessly<br>
> broken now, and a different approach to do the same needed?<br>
<br>
</span>Probably there is a "getter" function to get at what you need. What<br>
properties are they?<br>
<br>
The BIO_METHOD structure is also now opaque and needs to be setup via<br>
the BIO_meth_*() functions. See:<br>
<br>
<a href="https://www.openssl.org/docs/manmaster/crypto/BIO_meth_new.html" rel="noreferrer" target="_blank">https://www.openssl.org/docs/<wbr>manmaster/crypto/BIO_meth_new.<wbr>html</a><br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div><br></div><div>Thanks for the quick answer!</div><div><br></div><div>Adapting the BIO_METHOD stuff looks easy enough indeed, thanks for the pointers. The problem is that, in my BIO_METHOD callbacks, I access some of the BIO properties for the logic to implement. For instance, in the *create callback I set, among others, my own helper struct pointer in the ->ptr property of the involved BIO, so that I can always access it when using the BIO itself; or, in the *write callback, I access the ->next_bio property.</div><div><br></div><div>I'll check if/how I can set/get them on the BIO using dedicated methods instead of accessing properties directly.</div><div><br></div><div>Thanks!</div><div>Lorenzo</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
Matt<br>
--<br>
</font></span><div class="HOEnZb"><div class="h5">openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/<wbr>mailman/listinfo/openssl-users</a><br>
</div></div></blockquote></div><br></div></div>