head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.50 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.48 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.46 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.44 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.42 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.40 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.38 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.36 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.34 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.32 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.30 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.28 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.26 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.24 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.22 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.20 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.18 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.16 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.14 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.12 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.10 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.8 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.6 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.4 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.2 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.1.0.34 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.30 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.28 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.26 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.24 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.22 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.20 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.18 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.16 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.14 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.10 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.8 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.6 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.4 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.2 pkgsrc-2016Q2-base:1.1; locks; strict; comment @# @; 1.2 date 2020.01.06.23.55.47; author mef; state Exp; branches; next 1.1; commitid d2wpSy4x5QGOLGRB; 1.1 date 2016.06.04.21.48.12; author alnsn; state Exp; branches; next ; commitid zfAhnJbAwBoCcc9z; desc @@ 1.2 log @(security/lua-sec) Updated 0.6 to 0.9 -------------------------------------------------------------------------- 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 in 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 --------------- 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.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 --------------- 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: * Add support to OpenSSL 1.1.0 * Add support to elliptic curves list * Add ssl.config that exports some OpenSSL information * Add integration with luaossl @ text @$NetBSD: patch-src_Makefile,v 1.1 2016/06/04 21:48:12 alnsn Exp $ Pass proper libs for SunOS. --- src/Makefile.orig 2019-10-31 23:43:53.000000000 +0900 +++ src/Makefile 2020-01-07 08:51:05.242195762 +0900 @@@@ -9,7 +9,7 @@@@ OBJS= \ config.o \ ec.o -LIBS=-lssl -lcrypto -lluasocket +LIBS=-lssl -lcrypto -lluasocket $(MYLIBS) WARN=-Wall -pedantic @@@@ -23,6 +23,9 @@@@ MAC_ENV=env MACOSX_DEPLOYMENT_TARGET='$( MAC_CFLAGS=-O2 -fno-common $(WARN) $(INCDIR) $(DEFS) MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR) +SOL_CFLAGS=-O2 -fpic $(WARN) $(INCDIR) $(DEFS) +SOL_LDFLAGS=-O -shared -fpic $(LIBDIR) + INSTALL = install CC ?= cc CCLD ?= $(MYENV) $(CC) @@@@ -34,10 +37,11 @@@@ LDFLAGS += $(MYLDFLAGS) all: install: $(CMOD) $(LMOD) - $(INSTALL) -d $(DESTDIR)$(LUAPATH)/ssl $(DESTDIR)$(LUACPATH) - $(INSTALL) $(CMOD) $(DESTDIR)$(LUACPATH) - $(INSTALL) -m644 $(LMOD) $(DESTDIR)$(LUAPATH) - $(INSTALL) -m644 https.lua $(DESTDIR)$(LUAPATH)/ssl + $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(LUAPATH)/ssl + $(BSD_INSTALL_LIB_DIR) $(DESTDIR)$(LUACPATH) + $(BSD_INSTALL_DATA) $(CMOD) $(DESTDIR)$(LUACPATH) + $(BSD_INSTALL_DATA) -m644 $(LMOD) $(DESTDIR)$(LUAPATH) + $(BSD_INSTALL_DATA) -m644 https.lua $(DESTDIR)$(LUAPATH)/ssl linux: @@$(MAKE) $(CMOD) MYCFLAGS="$(LNX_CFLAGS)" MYLDFLAGS="$(LNX_LDFLAGS)" EXTRA="$(EXTRA)" @@@@ -48,6 +52,9 @@@@ bsd: macosx: @@$(MAKE) $(CMOD) MYCFLAGS="$(MAC_CFLAGS)" MYLDFLAGS="$(MAC_LDFLAGS)" MYENV="$(MAC_ENV)" EXTRA="$(EXTRA)" +solaris: + @@$(MAKE) $(CMOD) MYCFLAGS="$(SOL_CFLAGS)" MYLDFLAGS="$(SOL_LDFLAGS)" EXTRA="$(EXTRA)" MYLIBS="-lsocket -lresolv -lnsl" + luasocket: @@cd luasocket && $(MAKE) @ 1.1 log @Update to luasec-0.6. Switch to MASTER_SITE_GITHUB. Notable changes between 0.5 and 0.6: Options from OpenSSL 1.0.2f Use "any" protocol, but SSL. Merge pull request #20 from Zash/zash/checkissued Method for checking if one certificate issued another Merge pull request #68 from ignacio/master Enables building with LuaRocks and MS compilers Enables building with LuaRocks and MS compilers Merge pull request #56 from gleydsonsoares/Makefile-tweaks Makefile tweaks Keep 'sslv23' for compability, but deprected. (it will be removed in the next version) Merge pull request #62 from gleydsonsoares/update_protocol_samples add TLS_method / rename "sslv23" to "any" / update protocol samples. update protocol samples(bring "tlsv1_2" to clients and "any" to servers) for consistency and readability, rename "sslv23" to "any" since that it is related to {TLS, SSLv23}methods that handles all supported protocols. add TLS_method(). for now, keep SSLv23_method() for compatibility. Update samples (using 'tlsv1'). Merge pull request #55 from gleydsonsoares/ifndef-OPENSSL_NO_SSL3 guard SSLv3_method() with #ifndef OPENSSL_NO_SSL3 Add lsec_testcontext(). bump MACOSX_VERSION fix typo; s,intall,install, guard SSLv3_method() with #ifndef OPENSSL_NO_SSL3 Set flags to compile with internal inet_ntop() by default. Tag "alpha" explicit. MinGW progress. Merge pull request #53 from hishamhm/master Reuse tag in the LuaSec upstream repository. Merge pull request #26 from Tieske/master Update rockspec to fix Windows build Alternative implementation to inet_ntop() for old versions of Windows. Do not hardcode ar added batch files to generate sample certs on Windows Perform all validation before allocating structures Validate signatures too. API changes to root:issued([intermediate]*, cert) Fix inet_ntop() on Windows. Merge branch 'master' of https://github.com/brunoos/luasec Merge branch 'moteus_rock' added bindir to lib section, as mingw links against dll's to be found in bindir updated defines in rockspec Merge branch 'master' of github.com:Tieske/luasec into moteus_rock use winsock 2 Don't set globals from C. Fix unpack(). Stop using module(). Change to luaL_newlib(). Remove luaL_optint() and luaL_checkint(). BSD headers. Merge pull request #21 from Zash/zash/iPAddress-fix iPAddress encoding Stop if we don't have a string. Changed for strict compiles. Fix for LibreSSL/OPENSSL_NO_COMP Problem on Win64, since double does not represent SOCKET_INVALID exactly. - Add a parameter to server:sni(), so that we can accept an unknown name, using the initial context. - Add the method :getsniname() to retrieve the SNI hostname used. Updated (and renamed) rockspec Windows Encode iPAddress fields in human readable form Don't try to encode IP addresses as UTF-8 Return early if ASN1 string is invalid Push nil if unable to encode ASN1 string as UTF-8 Return human readable error message from cert:issued() SNI support. SNI support. Merge pull request #17 from Zash/zash/checkkey Verify that certificate and key belong together Merge pull request #19 from Zash/zash/pubkey Zash/pubkey Add cert:pubkey() to methods registry Add cert:issued(leafcert) for checking chains Check if private key matches cert only if both key and cert are set Check that certificate matches private key Add method for extracting public key, type and size from x509 objects @ text @d1 1 a1 1 $NetBSD$ d5 5 a9 5 --- src/Makefile.orig 2016-03-03 19:11:46.000000000 +0000 +++ src/Makefile @@@@ -6,7 +6,7 @@@@ OBJS= \ context.o \ ssl.o d16 1 a16 1 @@@@ -20,6 +20,9 @@@@ MAC_ENV=env MACOSX_DEPLOYMENT_TARGET='$( d24 3 a26 3 CC = cc LD = $(MYENV) cc @@@@ -31,10 +34,11 @@@@ LDFLAGS += $(MYLDFLAGS) d30 9 a38 9 - $(INSTALL) -d $(LUAPATH)/ssl $(LUACPATH) - $(INSTALL) $(CMOD) $(LUACPATH) - $(INSTALL) -m644 $(LMOD) $(LUAPATH) - $(INSTALL) -m644 https.lua $(LUAPATH)/ssl + $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(LUAPATH)/ssl + $(BSD_INSTALL_LIB_DIR) $(DESTDIR)$(LUACPATH) + $(BSD_INSTALL_LIB) $(CMOD) $(DESTDIR)$(LUACPATH) + $(BSD_INSTALL_DATA) $(LMOD) $(DESTDIR)$(LUAPATH) + $(BSD_INSTALL_DATA) https.lua $(DESTDIR)$(LUAPATH)/ssl d42 1 a42 1 @@@@ -45,6 +49,9 @@@@ bsd: @