aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-10-14 18:55:08 +0100
committerMatthew Wild <mwild1@gmail.com>2014-10-14 18:55:08 +0100
commitc5d03454532da598dbb2cb7d2646a6a9cfb4a79f (patch)
treee267f4722b8414541b27c335ae0816b0a2d3e7b5
parent4a4ec58c8d72ad6b9670ba697b4a98d35e21e2f6 (diff)
downloadprosody-c5d03454532da598dbb2cb7d2646a6a9cfb4a79f.tar.gz
prosody-c5d03454532da598dbb2cb7d2646a6a9cfb4a79f.zip
certmanager, net.http: Disable SSLv3 by default
-rw-r--r--core/certmanager.lua2
-rw-r--r--net/http.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index d6784a96..624bd841 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -33,7 +33,7 @@ module "certmanager"
local default_ssl_config = configmanager.get("*", "ssl");
local default_capath = "/etc/ssl/certs";
local default_verify = (ssl and ssl.x509 and { "peer", "client_once", }) or "none";
-local default_options = { "no_sslv2", "cipher_server_preference", luasec_has_noticket and "no_ticket" or nil };
+local default_options = { "no_sslv2", "no_sslv3", "cipher_server_preference", luasec_has_noticket and "no_ticket" or nil };
local default_verifyext = { "lsec_continue", "lsec_ignore_purpose" };
if ssl and not luasec_has_verifyext and ssl.x509 then
diff --git a/net/http.lua b/net/http.lua
index 9dde6062..8ce47494 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -175,7 +175,7 @@ function request(u, ex, callback)
local sslctx = false;
if using_https then
- sslctx = ex and ex.sslctx or { mode = "client", protocol = "sslv23", options = { "no_sslv2" } };
+ sslctx = ex and ex.sslctx or { mode = "client", protocol = "sslv23", options = { "no_sslv2", "no_sslv3" } };
end
req.handler, req.conn = assert(server.wrapclient(conn, host, port_number, listener, "*a", sslctx));