[Pkg-javascript-devel] Bug#828457: nodejs: FTBFS with openssl 1.1.0

Kurt Roeckx kurt at roeckx.be
Mon Jun 27 08:01:33 UTC 2016


On Mon, Jun 27, 2016 at 12:23:04AM +0200, Jérémy Lal wrote:
> 2016-06-26 20:24 GMT+02:00 Kurt Roeckx <kurt at roeckx.be>:
> 
> > On Sun, Jun 26, 2016 at 06:53:42PM +0200, Jérémy Lal wrote:
> > >
> > > I'm on it, and after a couple things i could solve, i need a "gentle
> > push"
> > > to continue solving these:
> >
> > They all seem to be about the same problem.  The structure has
> > become opaque and you can't have it directly on the stack or in an
> > other struct.  Instead you need to allocate it with TYPE_new(),
> > which will give you a pointer back.  This will ensure that the
> > allocated size is the correct one, since we might change the
> > structure to add new fields and thing like that.  When you do
> > things like sizeof(TYPE) you would get the size at compile time
> > which might be a different one than the one at runtime.
> >
> 
> These changes seem quite easy and doable for a novice like me.
> However the whole part about BIO seems to be much harder to fix:
> https://github.com/nodejs/node/blob/v4.x/src/node_crypto_bio.h
> https://github.com/nodejs/node/blob/v4.x/src/node_crypto_bio.cc

It looks like they implemented their own BIO method?  You might
want to read:
https://www.openssl.org/docs/manmaster/crypto/BIO_meth_new.html

Instead of having the struct, you now need to set some of those
things with function calls.


Kurt



More information about the Pkg-javascript-devel mailing list