wahern / luaossl

Most comprehensive OpenSSL module in the Lua universe.
http://25thandclement.com/~william/projects/luaossl.html
Other
140 stars 49 forks source link

Compilation fails with >=openssl-3.0.0 #195

Closed ConiKost closed 2 years ago

ConiKost commented 3 years ago

Compilation fails with >=openssl-3.0.0

src/openssl.c:12204:13: error: too few arguments to function ‘EVP_KDF_derive’

You can get the full log: https://805041.bugs.gentoo.org/attachment.cgi?id=727965

loqs commented 2 years ago

@daurnimator have you had a change to look at this? In 8eaf1a460901645345e960223f9e1de7f9652376 which included https://github.com/wahern/luaossl/blob/8eaf1a460901645345e960223f9e1de7f9652376/src/openssl.c#L223 which is true with openssl 3.0.0. Given that was authored before any openssl release which would match the condition, does the code guarded by that condition need changing?

daurnimator commented 2 years ago

Arch packaging build failure log: lua-luaossl-20200709-2-x86_64-build.log

ConiKost commented 2 years ago

Any news?

loqs commented 2 years ago

@ConiKost would a build with the incompatible KDF functionality removed be of any use to you?

ConiKost commented 2 years ago

To be honest, I don't know. I think, this should be fine.

loqs commented 2 years ago

I made a branch with those changes https://github.com/loqs/luaossl/tree/openssl3

ncopa commented 2 years ago

Any progress here? I bumped into this today when migrating to openssl3 for Alpine Linux.

santiagorr commented 2 years ago

For the record, a similar issue in debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005697

mwild1 commented 2 years ago

luaossl has been removed from Debian due to this issue: https://tracker.debian.org/news/1332808/lua-luaossl-removed-from-testing/

mimi89999 commented 2 years ago

Many packages depending on luaossl have also been removed because of this.

daurnimator commented 2 years ago

Should be fixed with https://github.com/wahern/luaossl/pull/199