Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for LibreSSL/OPENSSL_NO_COMP #30

Merged
merged 2 commits into from Jan 28, 2015
Merged

Conversation

lluixhi
Copy link
Contributor

@lluixhi lluixhi commented Jan 16, 2015

No description provided.

@daurnimator
Copy link
Contributor

The related issue: #29

p_ssl ssl = (p_ssl)luaL_checkudata(L, 1, "SSL:Connection");
if (ssl->state != LSEC_STATE_CONNECTED) {
lua_pushnil(L);
lua_pushstring(L, "closed");
return 2;
}

#if !defined(OPENSSL_NO_COMP)
const COMP_METHOD *comp;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For strict compiles, the declaration must be at the top of the function.

brunoos added a commit that referenced this pull request Jan 28, 2015
Fix for LibreSSL/OPENSSL_NO_COMP
@brunoos brunoos merged commit 12e1b1f into lunarmodules:master Jan 28, 2015
jow- added a commit to jow-/packages that referenced this pull request Aug 9, 2016
Currently luasec fails to build if OpenSSL was built without compression
support due to an undefined COMP_METHOD type:

    ssl.c: In function 'meth_compression':
    ssl.c:404:9: error: unknown type name 'COMP_METHOD'
       const COMP_METHOD *comp;
             ^
    <builtin>: recipe for target 'ssl.o' failed
    make[6]: *** [ssl.o] Error 1

Add a local patch to stub the `meth_compression()` function if there is no
compression support available in the OpenSSL library in order to allow
luasec to build.

A similar fix has been added upstream with
lunarmodules/luasec#30

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants