Software /
code /
prosody
Comparison
core/certmanager.lua @ 6567:d4a68d93ad04
certmanager: Options that appear to be available since LuaSec 0.2
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 05 Feb 2015 16:56:28 +0100 |
parent | 6566:1f396f0fe832 |
child | 6568:b54b33f59c6e |
comparison
equal
deleted
inserted
replaced
6566:1f396f0fe832 | 6567:d4a68d93ad04 |
---|---|
36 | 36 |
37 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); | 37 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); |
38 local luasec_version = luasec_major * 100 + luasec_minor; | 38 local luasec_version = luasec_major * 100 + luasec_minor; |
39 local luasec_has = { | 39 local luasec_has = { |
40 -- TODO If LuaSec ever starts exposing these things itself, use that instead | 40 -- TODO If LuaSec ever starts exposing these things itself, use that instead |
41 cipher_server_preference = true; | 41 cipher_server_preference = >= 2; |
42 no_ticket = luasec_version >= 4; | 42 no_ticket = luasec_version >= 4; |
43 no_compression = luasec_version >= 5; | 43 no_compression = luasec_version >= 5; |
44 single_dh_use = luasec_version >= 5; | 44 single_dh_use = luasec_version >= 2; |
45 single_ecdh_use = luasec_version >= 5; | 45 single_ecdh_use = luasec_version >= 2; |
46 }; | 46 }; |
47 | 47 |
48 module "certmanager" | 48 module "certmanager" |
49 | 49 |
50 -- Global SSL options if not overridden per-host | 50 -- Global SSL options if not overridden per-host |