mirror of
https://github.com/brunoos/luasec.git
synced 2024-11-08 06:28:26 +01:00
LuaSec
5a98bb6adb
The number of bytes received by ssl_recv() is being passed to luaL_addlstring() (in recvall()) but it was being left either uninitialized or being set to an error code. The crashing case I found was when the state was not LSEC_STATE_CONNECTED (e.g. when dohandshake() has failed) and ssl_recv() returned immediately without setting "got". |
||
---|---|---|
samples | ||
src | ||
.gitignore | ||
CHANGELOG | ||
INSTALL | ||
LICENSE | ||
luasec-0.6-1.rockspec | ||
luasec.sln | ||
luasec.suo | ||
luasec.vcproj | ||
luasec.vcxproj | ||
luasec.vcxproj.filters | ||
Makefile | ||
README.md |
LuaSec 0.6
LuaSec depends on OpenSSL, and integrates with LuaSocket to make it easy to add secure connections to any Lua applications or scripts.
Documentation: https://github.com/brunoos/luasec/wiki
This version includes:
-
Lua 5.2 and 5.3 compatibility
-
Context module:
- Add ctx:checkkey()
-
SSL module:
- Add conn:sni() and conn:getsniname()
-
Context options:
- Add "any" protocol ("sslv23" is deprecated)
-
HTTPS module:
- Using "any" protocol without SSLv2/SSLv3, by default
-
X509 module:
- Human readable IP address
- Add cert:issued()
- Add cert:pubkey()
-
Some bug fixes
PS: 10th anniversary! Thanks to everyone who collaborate with LuaSec.