# HG changeset patch # User Matthew Wild # Date 1369229598 -3600 # Node ID 8bd1548a48b1ab0d87b5fb1003d7c58a26e6d1e5 # Parent 8349ae2a44ce3d6859d5bc28a51e28960224ad04# Parent 63cfd59999b6764e68d96e56e62feb11161df2b1 Merge 0.9->trunk diff -r 8349ae2a44ce -r 8bd1548a48b1 core/certmanager.lua --- a/core/certmanager.lua Wed May 22 13:33:33 2013 +0100 +++ b/core/certmanager.lua Wed May 22 14:33:18 2013 +0100 @@ -17,11 +17,12 @@ local resolve_path = configmanager.resolve_relative_path; local config_path = prosody.paths.config; -local luasec_has_noticket, luasec_has_verifyext; +local luasec_has_noticket, luasec_has_verifyext, luasec_has_no_compression; if ssl then local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); luasec_has_noticket = tonumber(luasec_major)>0 or tonumber(luasec_minor)>=4; luasec_has_verifyext = tonumber(luasec_major)>0 or tonumber(luasec_minor)>=5; + luasec_has_no_compression = tonumber(luasec_major)>0 or tonumber(luasec_minor)>=5; end module "certmanager" @@ -39,6 +40,9 @@ default_verify[#default_verify+1] = default_verifyext[i]:sub(6); end end +if luasec_has_no_compression and configmanager.get("*", "ssl_compression") ~= true then + default_options[#default_options+1] = "no_compression"; +end function create_context(host, mode, user_ssl_config) user_ssl_config = user_ssl_config or default_ssl_config;