Perry Clarke 5a98bb6adb Fix crash related to incorrect buffer size
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".
2016-05-03 16:37:47 -07:00
2015-03-02 11:33:37 +01:00
2016-03-03 16:11:46 -03:00
2016-03-03 16:11:46 -03:00
2016-03-03 16:11:46 -03:00
2012-09-02 11:32:26 -03:00
2015-10-15 08:19:29 -03:00
2016-03-03 16:11:46 -03:00

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.


Description
LuaSec
Readme MIT 1.4 MiB
Languages
C 87.1%
Lua 10.8%
Makefile 2.1%