diff options
-rw-r--r-- | core/certmanager.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua index 5de604f7..ff5506a3 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -1,3 +1,11 @@ +-- Prosody IM +-- Copyright (C) 2008-2010 Matthew Wild +-- Copyright (C) 2008-2010 Waqas Hussain +-- +-- This project is MIT/X11 licensed. Please see the +-- COPYING file in the source package for more information. +-- + local configmanager = require "core.configmanager"; local log = require "util.logger".init("certmanager"); local ssl = ssl; @@ -12,11 +20,12 @@ module "certmanager" -- Global SSL options if not overridden per-host local default_ssl_config = configmanager.get("*", "core", "ssl"); +local default_capath = "/etc/ssl/certs"; function create_context(host, mode, config) - if not ssl then return nil; end - local user_ssl_config = config and config.core.ssl or default_ssl_config; + + if not(ssl and user_ssl_config) then return nil; end local ssl_config = { mode = mode; |