Software /
code /
prosody
Changeset
3372:395f692b3182
Merge with backout
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 15 Jul 2010 08:27:56 +0100 |
parents | 3370:7c87af1c9a68 (diff) 3371:5b32e6f84392 (current diff) |
children | 3373:cd6836586a6a |
files | core/certmanager.lua |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/certmanager.lua Thu Jul 15 08:25:50 2010 +0100 +++ b/core/certmanager.lua Thu Jul 15 08:27:56 2010 +0100 @@ -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 @@ -- 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;