Software /
code /
prosody
Comparison
core/certmanager.lua @ 12972:ead41e25ebc0
core: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:23:07 +0100 |
parent | 12508:e6cfd0a6f0da |
child | 13115:749376d75b40 |
comparison
equal
deleted
inserted
replaced
12971:7214baed9e9d | 12972:ead41e25ebc0 |
---|---|
5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
7 -- | 7 -- |
8 | 8 |
9 local ssl = require "ssl"; | 9 local ssl = require "ssl"; |
10 local configmanager = require "core.configmanager"; | 10 local configmanager = require "prosody.core.configmanager"; |
11 local log = require "util.logger".init("certmanager"); | 11 local log = require "prosody.util.logger".init("certmanager"); |
12 local ssl_newcontext = ssl.newcontext; | 12 local ssl_newcontext = ssl.newcontext; |
13 local new_config = require"net.server".tls_builder; | 13 local new_config = require"prosody.net.server".tls_builder; |
14 local stat = require "lfs".attributes; | 14 local stat = require "lfs".attributes; |
15 | 15 |
16 local x509 = require "util.x509"; | 16 local x509 = require "prosody.util.x509"; |
17 local lfs = require "lfs"; | 17 local lfs = require "lfs"; |
18 | 18 |
19 local tonumber, tostring = tonumber, tostring; | 19 local tonumber, tostring = tonumber, tostring; |
20 local pairs = pairs; | 20 local pairs = pairs; |
21 local t_remove = table.remove; | 21 local t_remove = table.remove; |
25 local now = os.time; | 25 local now = os.time; |
26 local next = next; | 26 local next = next; |
27 local pcall = pcall; | 27 local pcall = pcall; |
28 | 28 |
29 local prosody = prosody; | 29 local prosody = prosody; |
30 local pathutil = require"util.paths"; | 30 local pathutil = require"prosody.util.paths"; |
31 local resolve_path = pathutil.resolve_relative_path; | 31 local resolve_path = pathutil.resolve_relative_path; |
32 local config_path = prosody.paths.config or "."; | 32 local config_path = prosody.paths.config or "."; |
33 | 33 |
34 local function test_option(option) | 34 local function test_option(option) |
35 return not not ssl_newcontext({mode="server",protocol="sslv23",options={ option }}); | 35 return not not ssl_newcontext({mode="server",protocol="sslv23",options={ option }}); |