# HG changeset patch # User Kim Alvefur # Date 1619443813 -7200 # Node ID 55ef50d6cf655414a1a71d8ce1891a3e795f35e6 # Parent dd21eb632f52d9c7eabec0f4e8a4378567373ba5 core.certmanager: Attempt to directly access LuaSec config table Due to a bug this field was not properly exported before See https://github.com/brunoos/luasec/issues/149 diff -r dd21eb632f52 -r 55ef50d6cf65 core/certmanager.lua --- a/core/certmanager.lua Mon May 10 17:03:27 2021 +0100 +++ b/core/certmanager.lua Mon Apr 26 15:30:13 2021 +0200 @@ -38,7 +38,7 @@ local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); local luasec_version = tonumber(luasec_major) * 100 + tonumber(luasec_minor); -local luasec_has = softreq"ssl.config" or { +local luasec_has = ssl.config or softreq"ssl.config" or { algorithms = { ec = luasec_version >= 5; };