lua-mbedtls adds support for Mbed TLS in Lua:
- SSL/TLS communication + cookie API.
- Message digest and HMAC.
- Base64 encoding/decoding.
- lua >= 5.1 (or luajit)
- mbedtls >= 2.7
To build and install, run:
luarocks make
To install the latest release using luarocks.org, run:
luarocks install lua-mbedtls
To build and install, run:
cmake .
make
make install
To build for a specific Lua version, set USE_LUA_VERSION
. For example:
cmake -D USE_LUA_VERSION=5.1 .
or for LuaJIT:
cmake -D USE_LUA_VERSION=jit .
To build in a separate directory, replace .
with a path to the source.