diff --git a/CHANGELOG b/CHANGELOG index 976154a..aa66fdb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,17 @@ +-------------------------------------------------------------------------------- +LuaSec 0.8 +--------------- +This version includes: + +* Add support to ALPN +* Add support to TLS 1.3 +* Add support to multiple certificates +* Add timeout to https module (https.TIMEOUT) +* Drop support to SSL 3.0 +* Drop support to TLS 1.0 from https module +* Fix invalid reference to Lua state +* Fix memory leak when get certficate extensions + -------------------------------------------------------------------------------- LuaSec 0.7 --------------- diff --git a/INSTALL b/INSTALL index 7c47db7..0ab0e9f 100644 --- a/INSTALL +++ b/INSTALL @@ -1,9 +1,9 @@ -LuaSec 0.7 +LuaSec 0.8 ------------ * OpenSSL options: - By default, LuaSec 0.7 includes options for OpenSSL 1.1.0f. + By default, LuaSec 0.8 includes options for OpenSSL 1.1.0g. If you need to generate the options for a different version of OpenSSL: diff --git a/LICENSE b/LICENSE index 1e63007..f4e8f7a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ -LuaSec 0.7 license -Copyright (C) 2006-2018 Bruno Silvestre, UFG +LuaSec 0.8 license +Copyright (C) 2006-2019 Bruno Silvestre, UFG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.md b/README.md index 04dc9f2..ba49a10 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -LuaSec 0.7 +LuaSec 0.8 =============== LuaSec depends on OpenSSL, and integrates with LuaSocket to make it easy to add secure connections to any Lua applications or scripts. diff --git a/luasec-0.7-1.rockspec b/luasec-0.8-1.rockspec similarity index 96% rename from luasec-0.7-1.rockspec rename to luasec-0.8-1.rockspec index 572d825..34ea93e 100644 --- a/luasec-0.7-1.rockspec +++ b/luasec-0.8-1.rockspec @@ -1,8 +1,8 @@ package = "LuaSec" -version = "0.7-1" +version = "0.8-1" source = { - url = "https://github.com/brunoos/luasec/archive/luasec-0.7.tar.gz", - dir = "luasec-luasec-0.7" + url = "https://github.com/brunoos/luasec/archive/luasec-0.8.tar.gz", + dir = "luasec-luasec-0.8" } description = { summary = "A binding for OpenSSL library to provide TLS/SSL communication over LuaSocket.", diff --git a/src/compat.h b/src/compat.h index e3d112b..23b03d5 100644 --- a/src/compat.h +++ b/src/compat.h @@ -1,7 +1,7 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2006-2018 Bruno Silvestre + * Copyright (C) 2006-2019 Bruno Silvestre * *--------------------------------------------------------------------------*/ diff --git a/src/config.c b/src/config.c index 42598e1..a4143d5 100644 --- a/src/config.c +++ b/src/config.c @@ -1,7 +1,7 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2006-2018 Bruno Silvestre. + * Copyright (C) 2006-2019 Bruno Silvestre. * *--------------------------------------------------------------------------*/ diff --git a/src/context.c b/src/context.c index 6a19f9f..fd74869 100644 --- a/src/context.c +++ b/src/context.c @@ -1,9 +1,9 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2014-2018 Kim Alvefur, Paul Aurich, Tobias Markmann, + * Copyright (C) 2014-2019 Kim Alvefur, Paul Aurich, Tobias Markmann, * Matthew Wild. - * Copyright (C) 2006-2018 Bruno Silvestre. + * Copyright (C) 2006-2019 Bruno Silvestre. * *--------------------------------------------------------------------------*/ diff --git a/src/context.h b/src/context.h index 1ffe3ba..26d9439 100644 --- a/src/context.h +++ b/src/context.h @@ -2,9 +2,9 @@ #define LSEC_CONTEXT_H /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2006-2017 Bruno Silvestre + * Copyright (C) 2006-2019 Bruno Silvestre * *--------------------------------------------------------------------------*/ diff --git a/src/ec.h b/src/ec.h index d50acd0..d6196f8 100644 --- a/src/ec.h +++ b/src/ec.h @@ -1,7 +1,7 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2006-2018 Bruno Silvestre + * Copyright (C) 2006-2019 Bruno Silvestre * *--------------------------------------------------------------------------*/ diff --git a/src/https.lua b/src/https.lua index 84d0b91..389dbf2 100644 --- a/src/https.lua +++ b/src/https.lua @@ -1,6 +1,6 @@ ---------------------------------------------------------------------------- --- LuaSec 0.7 --- Copyright (C) 2009-2018 PUC-Rio +-- LuaSec 0.8 +-- Copyright (C) 2009-2019 PUC-Rio -- -- Author: Pablo Musa -- Author: Tomas Guisasola @@ -18,8 +18,8 @@ local try = socket.try -- Module -- local _M = { - _VERSION = "0.7", - _COPYRIGHT = "LuaSec 0.7 - Copyright (C) 2009-2018 PUC-Rio", + _VERSION = "0.8", + _COPYRIGHT = "LuaSec 0.8 - Copyright (C) 2009-2019 PUC-Rio", PORT = 443, TIMEOUT = 60 } diff --git a/src/options.h b/src/options.h index cdd5e23..12029a5 100644 --- a/src/options.h +++ b/src/options.h @@ -2,9 +2,9 @@ #define LSEC_OPTIONS_H /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2006-2018 Bruno Silvestre + * Copyright (C) 2006-2019 Bruno Silvestre * *--------------------------------------------------------------------------*/ @@ -13,7 +13,7 @@ /* If you need to generate these options again, see options.lua */ /* - OpenSSL version: OpenSSL 1.1.1 + OpenSSL version: OpenSSL 1.1.1b */ struct ssl_option_s { diff --git a/src/options.lua b/src/options.lua index 743e775..cc0ab70 100644 --- a/src/options.lua +++ b/src/options.lua @@ -21,9 +21,9 @@ local function generate(options, version) #define LSEC_OPTIONS_H /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2006-2018 Bruno Silvestre + * Copyright (C) 2006-2019 Bruno Silvestre * *--------------------------------------------------------------------------*/ diff --git a/src/ssl.c b/src/ssl.c index 9fab55d..31d56ef 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -1,9 +1,9 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2014-2018 Kim Alvefur, Paul Aurich, Tobias Markmann, + * Copyright (C) 2014-2019 Kim Alvefur, Paul Aurich, Tobias Markmann, * Matthew Wild. - * Copyright (C) 2006-2018 Bruno Silvestre. + * Copyright (C) 2006-2019 Bruno Silvestre. * *--------------------------------------------------------------------------*/ @@ -818,7 +818,7 @@ static int meth_getalpn(lua_State *L) static int meth_copyright(lua_State *L) { - lua_pushstring(L, "LuaSec 0.7 - Copyright (C) 2006-2018 Bruno Silvestre, UFG" + lua_pushstring(L, "LuaSec 0.8 - Copyright (C) 2006-2019 Bruno Silvestre, UFG" #if defined(WITH_LUASOCKET) "\nLuaSocket 3.0-RC1 - Copyright (C) 2004-2013 Diego Nehab" #endif diff --git a/src/ssl.h b/src/ssl.h index f5618d1..190c8b8 100644 --- a/src/ssl.h +++ b/src/ssl.h @@ -2,9 +2,9 @@ #define LSEC_SSL_H /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2006-2018 Bruno Silvestre + * Copyright (C) 2006-2019 Bruno Silvestre * *--------------------------------------------------------------------------*/ diff --git a/src/ssl.lua b/src/ssl.lua index cd46a8f..1ee035a 100644 --- a/src/ssl.lua +++ b/src/ssl.lua @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------ --- LuaSec 0.7 +-- LuaSec 0.8 -- --- Copyright (C) 2006-2018 Bruno Silvestre +-- Copyright (C) 2006-2019 Bruno Silvestre -- ------------------------------------------------------------------------------ @@ -267,7 +267,7 @@ core.setmethod("info", info) -- local _M = { - _VERSION = "0.7", + _VERSION = "0.8", _COPYRIGHT = core.copyright(), loadcertificate = x509.load, newcontext = newcontext, diff --git a/src/x509.c b/src/x509.c index 9cae8b8..07635ba 100644 --- a/src/x509.c +++ b/src/x509.c @@ -1,7 +1,7 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2014-2018 Kim Alvefur, Paul Aurich, Tobias Markmann + * Copyright (C) 2014-2019 Kim Alvefur, Paul Aurich, Tobias Markmann * Matthew Wild, Bruno Silvestre. * *--------------------------------------------------------------------------*/ diff --git a/src/x509.h b/src/x509.h index 026f526..3c74fa0 100644 --- a/src/x509.h +++ b/src/x509.h @@ -1,7 +1,7 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.7 + * LuaSec 0.8 * - * Copyright (C) 2014-2018 Kim Alvefur, Paul Aurich, Tobias Markmann + * Copyright (C) 2014-2019 Kim Alvefur, Paul Aurich, Tobias Markmann * Matthew Wild, Bruno Silvestre. * *--------------------------------------------------------------------------*/