From 43feb51c5eff078a2cb484da8bbdc852a3ed296f Mon Sep 17 00:00:00 2001 From: Bruno Silvestre Date: Thu, 31 Oct 2019 11:34:27 -0300 Subject: [PATCH] Update 0.8 -> 0.9 --- CHANGELOG | 44 +++++++++++++++++++ INSTALL | 4 +- LICENSE | 2 +- README.md | 5 +-- ...ec-0.8-1.rockspec => luasec-0.9-1.rockspec | 6 +-- src/compat.h | 2 +- src/config.c | 2 +- src/context.c | 2 +- src/context.h | 2 +- src/ec.h | 2 +- src/https.lua | 6 +-- src/options.c | 2 +- src/options.h | 2 +- src/options.lua | 2 +- src/ssl.c | 4 +- src/ssl.h | 2 +- src/ssl.lua | 4 +- src/x509.c | 2 +- src/x509.h | 2 +- 19 files changed, 67 insertions(+), 30 deletions(-) rename luasec-0.8-1.rockspec => luasec-0.9-1.rockspec (95%) diff --git a/CHANGELOG b/CHANGELOG index aa66fdb..1b59ba1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,33 @@ +-------------------------------------------------------------------------------- +LuaSec 0.9 +--------------- +This version includes: + + +* Add DNS-based Authentication of Named Entities (DANE) support +* Add __close() metamethod +* Fix deprecation warnings with OpenSSL 1.1 +* Fix special case listing of TLS 1.3 EC curves +* Fix general_name leak in cert:extensions() +* Fix unexported 'ssl.config' table +* Replace $(LD) with $(CCLD) variable +* Remove multiple definitions of 'ssl_options' variable +* Use tag to git format: v0.9 + +-------------------------------------------------------------------------------- +LuaSec 0.8.2 +--------------- +This version includes: + +* Fix unexported 'ssl.config' table (backported) + +-------------------------------------------------------------------------------- +LuaSec 0.8.1 +--------------- +This version includes: + +* Fix general_name leak in cert:extensions() (backported) + -------------------------------------------------------------------------------- LuaSec 0.8 --------------- @@ -12,6 +42,20 @@ This version includes: * Fix invalid reference to Lua state * Fix memory leak when get certficate extensions +-------------------------------------------------------------------------------- +LuaSec 0.7.2 +--------------- +This version includes: + +* Fix unexported 'ssl.config' table (backported) + +-------------------------------------------------------------------------------- +LuaSec 0.7.1 +--------------- +This version includes: + +* Fix general_name leak in cert:extensions() (backported) + -------------------------------------------------------------------------------- LuaSec 0.7 --------------- diff --git a/INSTALL b/INSTALL index db18fd0..75e201f 100644 --- a/INSTALL +++ b/INSTALL @@ -1,9 +1,9 @@ -LuaSec 0.8 +LuaSec 0.9 ------------ * OpenSSL options: - By default, LuaSec 0.8 includes options for OpenSSL 1.1.1. + By default, this version includes options for OpenSSL 1.1.1. If you need to generate the options for a different version of OpenSSL: diff --git a/LICENSE b/LICENSE index f4e8f7a..7e2a014 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -LuaSec 0.8 license +LuaSec 0.9 license Copyright (C) 2006-2019 Bruno Silvestre, UFG Permission is hereby granted, free of charge, to any person obtaining diff --git a/README.md b/README.md index aade943..e4dcd45 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,6 @@ -LuaSec 0.8 +LuaSec 0.9 =============== LuaSec depends on OpenSSL, and integrates with LuaSocket to make it easy to add secure connections to any Lua applications or scripts. -Important: This version requires at least OpenSSL 1.0.2. - For old versions of OpenSSL, use LuaSec 0.7. - Documentation: https://github.com/brunoos/luasec/wiki diff --git a/luasec-0.8-1.rockspec b/luasec-0.9-1.rockspec similarity index 95% rename from luasec-0.8-1.rockspec rename to luasec-0.9-1.rockspec index 2a52494..c4d7387 100644 --- a/luasec-0.8-1.rockspec +++ b/luasec-0.9-1.rockspec @@ -1,9 +1,5 @@ package = "LuaSec" -version = "0.8-1" -source = { - url = "https://github.com/brunoos/luasec/archive/luasec-0.8.tar.gz", - dir = "luasec-luasec-0.8" -} +version = "0.9-1" description = { summary = "A binding for OpenSSL library to provide TLS/SSL communication over LuaSocket.", detailed = "This version delegates to LuaSocket the TCP connection establishment between the client and server. Then LuaSec uses this connection to start a secure TLS/SSL session.", diff --git a/src/compat.h b/src/compat.h index c4d03c2..e9121b0 100644 --- a/src/compat.h +++ b/src/compat.h @@ -1,5 +1,5 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2006-2019 Bruno Silvestre * diff --git a/src/config.c b/src/config.c index 787f45c..b153e9a 100644 --- a/src/config.c +++ b/src/config.c @@ -1,5 +1,5 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2006-2019 Bruno Silvestre. * diff --git a/src/context.c b/src/context.c index b6b7a75..ad5fea9 100644 --- a/src/context.c +++ b/src/context.c @@ -1,5 +1,5 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2014-2019 Kim Alvefur, Paul Aurich, Tobias Markmann, * Matthew Wild. diff --git a/src/context.h b/src/context.h index 26d9439..d4f3d95 100644 --- a/src/context.h +++ b/src/context.h @@ -2,7 +2,7 @@ #define LSEC_CONTEXT_H /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2006-2019 Bruno Silvestre * diff --git a/src/ec.h b/src/ec.h index d6196f8..9235386 100644 --- a/src/ec.h +++ b/src/ec.h @@ -1,5 +1,5 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2006-2019 Bruno Silvestre * diff --git a/src/https.lua b/src/https.lua index 389dbf2..e2b088b 100644 --- a/src/https.lua +++ b/src/https.lua @@ -1,5 +1,5 @@ ---------------------------------------------------------------------------- --- LuaSec 0.8 +-- LuaSec 0.9 -- Copyright (C) 2009-2019 PUC-Rio -- -- Author: Pablo Musa @@ -18,8 +18,8 @@ local try = socket.try -- Module -- local _M = { - _VERSION = "0.8", - _COPYRIGHT = "LuaSec 0.8 - Copyright (C) 2009-2019 PUC-Rio", + _VERSION = "0.9", + _COPYRIGHT = "LuaSec 0.9 - Copyright (C) 2009-2019 PUC-Rio", PORT = 443, TIMEOUT = 60 } diff --git a/src/options.c b/src/options.c index 95a76df..9e5042b 100644 --- a/src/options.c +++ b/src/options.c @@ -1,5 +1,5 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2006-2019 Bruno Silvestre * diff --git a/src/options.h b/src/options.h index 6569f3f..2ea9b7b 100644 --- a/src/options.h +++ b/src/options.h @@ -2,7 +2,7 @@ #define LSEC_OPTIONS_H /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2006-2019 Bruno Silvestre * diff --git a/src/options.lua b/src/options.lua index 4b2e5bb..3915d92 100644 --- a/src/options.lua +++ b/src/options.lua @@ -18,7 +18,7 @@ end local function generate(options, version) print([[ /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2006-2019 Bruno Silvestre * diff --git a/src/ssl.c b/src/ssl.c index 417710f..57f17ca 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -1,5 +1,5 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2014-2019 Kim Alvefur, Paul Aurich, Tobias Markmann, * Matthew Wild. @@ -819,7 +819,7 @@ static int meth_getalpn(lua_State *L) static int meth_copyright(lua_State *L) { - lua_pushstring(L, "LuaSec 0.8 - Copyright (C) 2006-2019 Bruno Silvestre, UFG" + lua_pushstring(L, "LuaSec 0.9 - 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 190c8b8..6be015c 100644 --- a/src/ssl.h +++ b/src/ssl.h @@ -2,7 +2,7 @@ #define LSEC_SSL_H /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2006-2019 Bruno Silvestre * diff --git a/src/ssl.lua b/src/ssl.lua index 66cd0fa..26e41d9 100644 --- a/src/ssl.lua +++ b/src/ssl.lua @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------ --- LuaSec 0.8 +-- LuaSec 0.9 -- -- Copyright (C) 2006-2019 Bruno Silvestre -- @@ -271,7 +271,7 @@ core.setmethod("info", info) -- local _M = { - _VERSION = "0.8", + _VERSION = "0.9", _COPYRIGHT = core.copyright(), config = config, loadcertificate = x509.load, diff --git a/src/x509.c b/src/x509.c index 65ee53f..612cd6a 100644 --- a/src/x509.c +++ b/src/x509.c @@ -1,5 +1,5 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * 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 3c74fa0..022344b 100644 --- a/src/x509.h +++ b/src/x509.h @@ -1,5 +1,5 @@ /*-------------------------------------------------------------------------- - * LuaSec 0.8 + * LuaSec 0.9 * * Copyright (C) 2014-2019 Kim Alvefur, Paul Aurich, Tobias Markmann * Matthew Wild, Bruno Silvestre.