prosody: Expose global_ssl_ctx through prosody object

Fri, 04 Dec 2009 18:57:54 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 04 Dec 2009 18:57:54 +0000
changeset 2322
548a4fc54a74
parent 2321
7e7484a4e821
child 2323
b7f683c55a44

prosody: Expose global_ssl_ctx through prosody object

prosody file | annotate | diff | comparison | revisions
--- a/prosody	Fri Dec 04 09:48:08 2009 -0800
+++ b/prosody	Fri Dec 04 18:57:54 2009 +0000
@@ -179,6 +179,7 @@
 	if global_ssl_ctx then
 		local default_ssl_ctx = { mode = "server", protocol = "sslv23", capath = "/etc/ssl/certs", verify = "none", options = "no_sslv2"; };
 		setmetatable(global_ssl_ctx, { __index = default_ssl_ctx });
+		prosody.global_ssl_ctx = global_ssl_ctx;
 	end
 
 	local cl = require "net.connlisteners";

mercurial