[openssl-users] DTLS fragmentation and mem BIO
Lorenzo Miniero
lminiero at gmail.com
Tue Sep 6 14:31:26 UTC 2016
2016-09-06 16:27 GMT+02:00 Matt Caswell <matt at openssl.org>:
>
>
> On 06/09/16 15:22, Lorenzo Miniero wrote:
> > 2016-09-06 16:05 GMT+02:00 Matt Caswell <matt at openssl.org
> > <mailto:matt at openssl.org>>:
> >
> >
> >
> > On 06/09/16 14:55, Lorenzo Miniero wrote:
> > > Apologies for reviving this old thread, but a user of my project
> made me
> > > notice that my code doesn't compile on Openssl 1.1.0 anymore.
> Apparently
> > > the cause is some structures have been made opaque in the new
> version.
> > > In my case, the structure that breaks the code is BIO, as I used
> some of
> > > its previously public properties in my filter. Is there any
> transition
> > > documentation page that can help figuring out how I can adapt it
> > > accordingly? Or is the way my filter was written at the time
> hopelessly
> > > broken now, and a different approach to do the same needed?
> >
> > Probably there is a "getter" function to get at what you need. What
> > properties are they?
> >
> > The BIO_METHOD structure is also now opaque and needs to be setup via
> > the BIO_meth_*() functions. See:
> >
> > https://www.openssl.org/docs/manmaster/crypto/BIO_meth_new.html
> > <https://www.openssl.org/docs/manmaster/crypto/BIO_meth_new.html>
> >
> >
> >
> > Thanks for the quick answer!
> >
> > 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.
>
> Use BIO_get_data()/BIO_set_data() for ptr, and BIO_next()/BIO_set_next()
> for next_bio.
>
>
I was looking at the BIO docs right now (BIO_set_init and the others) but
you beat me to it... thanks again for the very fast help, it's really
appreciated!
Lorenzo
> Matt
>
> --
> openssl-users mailing list
> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20160906/ef2c1c6f/attachment.html>
More information about the openssl-users
mailing list