LuaSec 0.3.1

This commit is contained in:
Bruno Silvestre 2012-09-02 11:27:04 -03:00
parent 1c95a077ee
commit affd08cf05
8 changed files with 26 additions and 17 deletions

View File

@ -1,13 +1,19 @@
--------------------------------------------------------------------------------
LuaSec 0.3.1
------------
- BUG: receive("a") returns 'closed' error instead of the content when the
SSL/TLS connection is shut down cleanly. (thanks Matthias Diener)
--------------------------------------------------------------------------------
LuaSec 0.3
----------
- Add functions ssl.rawcontext() and ssl.rawconnection()
- Add support to encrypted key password.
- Add support to encrypted key password. (thanks Norbert Kiesel)
--------------------------------------------------------------------------------
LuaSec 0.2.1
------------
- 'key' and 'certificate' configurations become optional.
- 'key' and 'certificate' configurations become optional. (thanks René Rebe)
- Add '_VERSION' variable to module.
--------------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
LuaSec 0.3
-----------
LuaSec 0.3.1
------------
* On Linux, BSD, and Mac OS X:

View File

@ -1,5 +1,5 @@
LuaSec 0.3 license
Copyright (C) 2006-2008 Bruno Silvestre
LuaSec 0.3.1 license
Copyright (C) 2006-2009 Bruno Silvestre
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the

View File

@ -1,6 +1,6 @@
/*--------------------------------------------------------------------------
* LuaSec 0.3
* Copyright (C) 2006-2008 Bruno Silvestre
* LuaSec 0.3.1
* Copyright (C) 2006-2009 Bruno Silvestre
*
*--------------------------------------------------------------------------*/

View File

@ -2,8 +2,8 @@
#define __CONTEXT_H__
/*--------------------------------------------------------------------------
* LuaSec 0.3
* Copyright (C) 2006-2008 Bruno Silvestre
* LuaSec 0.3.1
* Copyright (C) 2006-2009 Bruno Silvestre
*
*--------------------------------------------------------------------------*/

View File

@ -1,6 +1,6 @@
/*--------------------------------------------------------------------------
* LuaSec 0.3
* Copyright (C) 2006-2008 Bruno Silvestre
* LuaSec 0.3.1
* Copyright (C) 2006-2009 Bruno Silvestre
*
*--------------------------------------------------------------------------*/
@ -158,6 +158,9 @@ static int ssl_recv(void *ctx, char *data, size_t count, size_t *got,
case SSL_ERROR_NONE:
*got = err;
return IO_DONE;
case SSL_ERROR_ZERO_RETURN:
*got = err;
return IO_CLOSED;
case SSL_ERROR_WANT_READ:
err = socket_waitfd(&ssl->sock, WAITFD_R, tm);
if (err == IO_TIMEOUT) return IO_SSL;

View File

@ -2,8 +2,8 @@
#define __SSL_H__
/*--------------------------------------------------------------------------
* LuaSec 0.3
* Copyright (C) 2006-2008 Bruno Silvestre
* LuaSec 0.3.1
* Copyright (C) 2006-2009 Bruno Silvestre
*
*--------------------------------------------------------------------------*/

View File

@ -1,5 +1,5 @@
------------------------------------------------------------------------------
-- LuaSec 0.3
-- LuaSec 0.3.1
-- Copyright (C) 2006-2008 Bruno Silvestre
--
------------------------------------------------------------------------------
@ -10,8 +10,8 @@ require("ssl.core")
require("ssl.context")
_VERSION = "0.3"
_COPYRIGHT = "LuaSec 0.3 - Copyright (C) 2006-2008 Bruno Silvestre\n" ..
_VERSION = "0.3.1"
_COPYRIGHT = "LuaSec 0.3.1 - Copyright (C) 2006-2009 Bruno Silvestre\n" ..
"LuaSocket 2.0.2 - Copyright (C) 2004-2007 Diego Nehab"
-- Export functions