Skip to content

Error in tls.lua #209

@NeoN7777

Description

@NeoN7777

Hello!
I'm trying to use lua-http on a pretty old device. When I run my lua script I get this error:
luajit: /usr/local/share/lua/5.1/http/tls.lua:750: attempt to perform arithmetic on field 'OP_NO_COMPRESSION' (a nil value)

As far as I understand, the problem is due to my version of openSSL - it is OpenSSL 0.9.8o 01 Jun 2010. It doesn't have SSL_OP_NO_COMPRESSION define, which is used here: https://github.com/wahern/luaossl/blob/8e9622c22f76d550594212c8bf5057f39d76f383/src/openssl.c#L10433

I'm using cross-compiled luaossl (20170903)
Is there any way to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions